> s.pred.df <- data.frame(session = rep(factor(1:6), 2),
+ sex = rep(c(0,1),each=6))
> #now predict
> s.preds <- get.real(model = model_oSCR_2yr_pop_D_sess_p0_sess_dep_sig_pop, type = "sig", newdata = s.pred.df)
Error in eval(g., envir) : object 'sig.sex' not found
I added sig.sex in 's.pred.df after I got that error because when I only had 'sex =' I would get this error. The covariates in my model are:
model_oSCR_2yr_pop_D_sess_p0_sess_dep_sig_pop[["outStats"]] parameters mle std.er 1 p0.(Intercept) 2 p0.session2 3 p0.session3 4 p0.session4 5 p0.session5 6 p0.session6 7 sig.(Intercept) 8 sig.sexmale 9 t.beta.depth_std 10 t.beta.depth2_std 11 d0.(Intercept) 12 d.beta.session2 13 d.beta.session3 14 d.beta.session4 15 d.beta.session5 16 d.beta.session6 17 psi.constantWhich is why I attempted sig.sexmale too. Thank you so much for your help!
--
You received this message because you are subscribed to the Google Groups "oSCR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to oscr_package...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/oscr_package/e9980a4f-143b-495c-ab60-254e3ba3369en%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/oscr_package/e5808165-d450-4df6-adc4-0b52dae3a31dn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/oscr_package/CAKQu4%2BjrxAADa94Rkg-L1O6vK%2BqEcera4THFAAehSDU-LiW0MQ%40mail.gmail.com.