我正在尝试使用 Stargazer 在 Rstudio 中打印组合流明的表格,但我不断收到此消息:
if (nchar(text.matrix[r, c]) > max.length[real.c]) { 中的错误:缺少 TRUE/FALSE 需要的值
这是我正在使用的代码:
stargazer(model1.1, model1.2, model1.3, model1.4, model1.5, model1.6,
title = "The association between talent development and further education",
dep.var.labels = "Whether to participate in talent development",
covariate.labels = c("B4.1", "C2_score", "C1_score"),
type = "html",
star.cutoffs = c(0.05, 0.01, 0.001),
out = "學才藝與升學.html")```
It appears 'Error in if (nchar(text.matrix[r, c]) > max.length[real.c]) { : missing value where TRUE/FALSE needed' .
How should I correct it?
当模型对象“model1.1”中使用的因变量太长时,就会发生这种情况。
如果您禁止显示因变量标签,则会创建观星表。
这可以通过添加来完成
dep.var.labels.include = FALSE,
至观星者选项。