Learn R Programming

LMMstar (version 1.1.0)

weights.Wald_lmm: Extract Weights Used to Pool Estimates

Description

Extract weights used to pool estimates.

Usage

# S3 method for Wald_lmm
weights(object, method, ...)

Value

a numeric vector whose elements sum to 1.

Arguments

object

a Wald_lmm object, output of anova.lmm, or rbind.lmm, or mlmm.

method

[character] method for combining the estimates, one of "average", "pool.se", "pool.gls", "pool.rubin".

...

Not used. For compatibility with the generic method.

Examples

Run this code
set.seed(10)
dL <- sampleRem(250, n.times = 3, format = "long")

e.mlmm <- mlmm(Y~X1+X2+X6, repetition = ~visit|id, data = dL,
               by = "X4", effects = "X1=0", structure = "CS")
weights(e.mlmm, method = "average")
weights(e.mlmm, method = "pool.fixse")
weights(e.mlmm, method = "pool.se")
weights(e.mlmm, method = "pool.gls")

Run the code above in your browser using DataLab