Understanding an error returned by stargazer in R -
i trying reproduce simplified version of r output described in this posting. more generally, related attempt use stargazer()
function generate latex table lmer
object.
following author's posting, i've loaded appropriate libraries , created 2 lmer
objects using following code:
library(lme4) library(stargazer) data(cake) m1 <- lmer(angle ~ temp + (1 | replicate) + (1|recipe:replicate), cake, reml= false) m2 <- lmer(angle ~ factor(temperature) + (1 | replicate) + (1|recipe:replicate), cake, reml= false)
when attempt following code, returns error below:
stargazer(m1, m2, style="ajps", title="an illustrative model using cake data", dep.var.labels.include = false, covariate.labels=c( "temperature (continuous)", "temperature (factor $<$ 185)", "temperature (factor $<$ 195)", "temperature (factor $<$ 205)", "temperature (factor $<$ 215)", "temperature (factor $<$ 225)"))
error in objects[[i]]$zelig.call : $ operator not defined s4 class
i not understand source of error, nor how remedy it, , appreciative of help.
i using rstudio version 0.99.441 in desktop mode.
my r version info follow:
platform x86_64-apple-darwin13.4.0 arch x86_64 os darwin13.4.0 system x86_64, darwin13.4.0 status major 3 minor 2.0 year 2015 month 04 day 16 svn rev 68180 language r version.string r version 3.2.0 (2015-04-16) nickname full of ingredients
my version of stargazer
package 5.1, , version of lme4
1.1-7
Comments
Post a Comment