0

I'm trying to print a table of combined lm's in Rstudio using Stargazer and I keep getting this message:

Error in if (nchar(text.matrix[r, c]) > max.length[real.c]) { : missing value where TRUE/FALSE needed

This is the code I'm using:

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?
李盈儒
  • 3
  • 1
  • Does this answer your question? [How to fix 'Error in if (nchar(text.matrix\[r, c\]) > max.length\[real.c\]) { : missing value where TRUE/FALSE needed' using stargazer in rstudio?](https://stackoverflow.com/questions/54113706/how-to-fix-error-in-if-nchartext-matrixr-c-max-lengthreal-c-miss) – Marco Jul 13 '23 at 16:11

0 Answers0