I ran some multivariate multiple regression models by combining the multiple dependent variables with cbind() in lm():
dv1 <- rnorm(15)
dv2 <- rnorm(15)
dv3 <- rnorm(15)
iv1 <- rnorm(15)
iv2 <- rnorm(15)
m1 <- lm(cbind(dv1, dv2, dv3) ~ iv1 + iv2)
I need a classic publication table for my models with significance stars, etc, and usually use stargazer for that. I think it gives me an error message because of the multiple DVs.
library(stargazer)
stargazer(mmr1, type = "html")
The error is: "Error in if (.global.coefficient.variables[i] %in% .global.intercept.strings) { : argument is of length zero"
The package updated to the most current version (that was what solved a similar stargazer error in another question) and if I run the same model with only one dependent variable, I do not get an error message.
I couldn't find any threads specifically targeted at getting multivariate regression results plotted in a publication table, only multiple regression models.
Can anyone give me a tip here? Which function goes well with multivariate models that provide a publication table similar to the stargazer ones?