xyplotFun: A wrapper around 'xyplot' with showing significance from...

Description Usage Arguments Examples

Description

Grouping variables that do not overlap 0 are showin with *+* and *-*

Usage

1
2
xyplotFun(model, model.variable, data, group.variable, return = "both",
  type = c("p", "r"), ...)

Arguments

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 xyplot

...

Other arguments passed to ciFun

Examples

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")

p-schaefer/psUtilities documentation built on May 24, 2019, 5:56 p.m.