Learn R Programming

pbkrtest (version 0.3-7)

getKR: Extract (or "get") components from a KRmodcomp object.

Description

Extract (or "get") components from a KRmodcomp object, which is the result of the KRmodcomp function.

Usage

getKR(object, name = c("ndf", "ddf", "Fstat", "p.value",
     "F.scaling", "FstatU", "p.valueU", "aux"))

Arguments

object
A KRmodcomp object, which is the result of the KRmodcomp function
name
The available slots. If name is missing or NULL then everything is returned.

See Also

KRmodcomp PBmodcomp vcovAdj

Examples

Run this code
data(beets, package='pbkrtest')
lg <- lmer(sugpct ~ block + sow + harvest + (1|block:harvest), 
              data=beets, REML=FALSE)
sm <- update(lg, .~. - harvest)
xx<-KRmodcomp(lg, sm)
getKR(xx, "ddf") # get denominator degrees of freedom.

Run the code above in your browser using DataLab