Description Usage Arguments Examples
Grouping variables that do not overlap 0 are showin with *+* and *-*
1 2 |
model |
A merMod object from lme4. |
model.variable |
Character. The name of the random effect variable to be computed. |
data |
An optional data frame used in model |
group.variable |
Character. Grouping variable for plots |
return |
Character. Either "raw", "fitted", or "both" |
type |
Character. Passed to type in |
... |
Other arguments passed to |
1 2 3 4 5 6 7 8 9 | require(lme4)
m1 <- lmer(Reaction ~ 1 + (Days | Subject), sleepstudy)
xyplotFun(model=m1, model.variable= "Days", data=sleepstudy, group.variable="Subject")
d1<-cbpp
d1$period<-as.numeric(as.character(cbpp$period))
d1$response<-d1$incidence/d1$size
gm1 <- glmer(response ~ 1 + (period | herd), data = d1, weights=d1$size, family = binomial)
xyplotFun(model=gm1, model.variable= "period", data=d1, group.variable="herd")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.