我正在使用stargazer为我的学士论文创建回归输出。由于我的数据结构,我必须使用集群模型(下面的代码)。我正在使用multiwaycov包中的vcovclust命令,它可以很好地工作。然而,stargazer不支持它。你知道另一种创建像stargazer一样好的输出的方法吗?或者,您是否知道另一个包/命令来集群模型,这是由stargazer支持的?
model1.1.2 <- lm(leaflet ~ partisan + as.factor(gender) + age + as.factor(education) + meaning + as.factor(polintrest), data = voxit)
summary(model1.1.2)
#clustering
vcov_clust1.1.2 <- cluster.vcov(model1.1.2, cbind(voxit$id, voxit$projetx))
coeftest(model1.1.2, vcov_clust1.1.2)https://stackoverflow.com/questions/44458574
复制相似问题