dstanley4 / apaTables

Development version of apaTables R package. Current stable version is on the CRAN.
http://dstanley4.github.io/apaTables/
Other
55 stars 13 forks source link

Regression Table & Factors #1

Closed mjbsp closed 7 years ago

mjbsp commented 7 years ago

I really like the package. I ran into a small problem when I tried to create a regression table for an equation where one variable was a factor (and so dummy coded). I received the following error.

Error in cor.test.default(dv.in, cur.pred) : 'y' must be a numeric vector

The same model without the factor variable worked great.

I know that I can create my own dummy codes and avoid the issue, but it would also be handy to use factors in the models.

dstanley4 commented 7 years ago

I just uploaded a new version of apaTables to the CRAN (version 1.5.0). I believe this should address this issue. If not, please let me know.

Also note, that there is now a short vignette for the package: https://cran.r-project.org/web/packages/apaTables/vignettes/apaTables.html

Cheers, David