estfun: Extract the Score Function for Multcomp

Description Usage Arguments Value Examples

Description

Extract the Score Function for Multcomp. For internal use.

Usage

1
2
## S3 method for class 'lmm'
estfun(x, ...)

Arguments

x

a lmm object.

...

Not used. For compatibility with the generic method.

Value

A matrix containing the score function for each model parameter (columns) relative to each cluster (rows).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## simulate data in the long format
set.seed(10)
dL <- sampleRem(100, n.times = 3, format = "long")

## fit Linear Mixed Model
eUN.lmm <- lmm(Y ~ X1 + X2 + X5, repetition = ~visit|id, structure = "UN", data = dL, df = FALSE)

## test multiple linear hypotheses
if(require(multcomp)){
LMMstar.options(effects = c("mean"))
e.glht <- multcomp::glht(eUN.lmm)
e.glht$linfct
}

LMMstar documentation built on Nov. 5, 2021, 1:07 a.m.