[R] Cryptic error from stargazer
    Ashim Kapoor 
    @@h|mk@poor @end|ng |rom gm@||@com
       
    Thu Jun  8 07:41:08 CEST 2023
    
    
  
Dear All,
Here is my reproducible example:
> library(stargazer)
Please cite as:
 Hlavac, Marek (2018). stargazer: Well-Formatted Regression and
Summary Statistics Tables.
 R package version 5.2.2. https://CRAN.R-project.org/package=stargazer
> x1=1:1000 ; y = 2 * x1+ rnorm(1000)
> stargazer(lm(y~x1))
Error in (.format.s.statistics.list != "p25") &&
(.format.s.statistics.list !=  :
  'length = 7' in coercion to 'logical(1)'
The error returned is cryptic and I am not able to google and find the solution.
Here is my sessionInfo:
> sessionInfo()
R version 4.3.0 (2023-04-21)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Debian GNU/Linux 10 (buster)
Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.3.5.so;  LAPACK version 3.8.0
locale:
 [1] LC_CTYPE=en_IN       LC_NUMERIC=C         LC_TIME=en_IN
 [4] LC_COLLATE=en_IN     LC_MONETARY=en_IN    LC_MESSAGES=en_IN
 [7] LC_PAPER=en_IN       LC_NAME=C            LC_ADDRESS=C
[10] LC_TELEPHONE=C       LC_MEASUREMENT=en_IN LC_IDENTIFICATION=C
time zone: Asia/Kolkata
tzcode source: system (glibc)
attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base
other attached packages:
[1] stargazer_5.2.2
loaded via a namespace (and not attached):
[1] compiler_4.3.0
Any help will be appreciated.
Thank you,
Ashim
    
    
More information about the R-help
mailing list