[R] Help needed with olsrr package

Eric Berger er|cjberger @end|ng |rom gm@||@com
Tue Aug 22 19:05:30 CEST 2023

I copied your data and ran your code.
It worked fine for me.

> sessionInfo()
R version 4.3.1 (2023-06-16)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 22.04.2 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.20.so;
 LAPACK version 3.10.0

 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C

time zone: Asia/Jerusalem
tzcode source: system (glibc)

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] olsrr_0.5.3

loaded via a namespace (and not attached):
 [1] vctrs_0.6.3       cli_3.6.1         rlang_1.1.1       car_3.1-2
      generics_0.1.3    data.table_1.14.8 glue_1.6.2
colorspace_2.1-0  gridExtra_2.3
[10] scales_1.2.1      fansi_1.0.4       grid_4.3.1
carData_3.0-5     munsell_0.5.0     tibble_3.2.1      abind_1.4-5
 lifecycle_1.0.3   compiler_4.3.1
[19] goftest_1.2-3     dplyr_1.1.2       Rcpp_1.0.11
pkgconfig_2.0.3   rstudioapi_0.15.0 nortest_1.0-4     R6_2.5.1
 tidyselect_1.2.0  utf8_1.2.3
[28] pillar_1.9.0      magrittr_2.0.3    tools_4.3.1
gtable_0.3.3      ggplot2_3.4.2


On Tue, Aug 22, 2023 at 7:47 PM Ivan Krylov <krylov.r00t using gmail.com> wrote:
> В Tue, 22 Aug 2023 16:06:22 +0530
> Ashim Kapoor <ashimkapoor using gmail.com> пишет:
> > Error in eval(predvars, data, env) : object 'Var.One' not found
> Use traceback() to find out in which function the error was raised.
> This looks like a bug in the olsrr package. Could be due to use of
> string manipulation in order to work with formula terms, could be
> some other assumption violated by I(10*Var2).
> Try asking at https://github.com/rsquaredacademy/olsrr/issues.
> --
> Best regards,
> Ivan
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list