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

bootstrapped tables with interaction issue #29

Open DrJayG opened 4 years ago

DrJayG commented 4 years ago

Hello,

I am having trouble producing a table of bootstrapped regression results with an interaction term; so the model looks like d <-lm(dependent ~ v1*v2, data=x). I get the following error

Error: Assigned data sr2_CI_boot[, c("LL")] must be compatible with existing data. x Existing data has 2 rows. x Assigned data has 3 rows. i Only vectors of size 1 are recycled.

The apa.reg.boot.table works fine with either variable alone in the model, or adding the second variable as an additional coefficient (v1 +v2), but does not permit the above interaction term. I am able to conduct the bootstrap using car package 'Boot' function, but I'd like to use apaTables to report the result.