Since you only have 28 levels of height, you shouldn't have any
problems letting ezPredict obtain predictions for each level. The
numeric_res argument is more useful with you have hundreds/thousands
of levels and/or when you have multiple such continuous variables
interacting in the model. While you have another numeric variable in
your model, year, since you have specified it as a random effect I
believe that it is not actually treated as a number but a category;
regardless, ezPredict doesn't bother with random effects anyway, just
the fixed effects side of the model (i.e. after variance associated
with random effects has been removed). (by the way, are you really
sure you want to be treating a variable like year as a random effect?)
The error you copied at the bottom of your message is a new one to me;
do you still get it if you omit both the "CI=0.95" and the
"do_lines=TRUE" arguments?
Also, instead of simply fitting a linear effect to height, might I
suggest exploring a generalized additive model, which would have the
power to pick up on non-linear effects as well? ezMixed will do this
automatically, but the mgcv:gam code would be:
gammod = gam(
formula = avoid ~ s(height,bs='ts',k=28) + s(year,bs='re')
, family = binomial
, data = rsaabove
)
And you can use ezPredict/ezPlot2 to visualize the resulting model.
Cheers,
Mike
--
Mike Lawrence
Graduate Student
Department of Psychology & Neuroscience
Dalhousie University
~ Certainty is (possibly) folly ~
> --
> You received this message because you are subscribed to the Google Groups
> "ez4r" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
ez4r+uns...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>