weights.rbindWald_lmm: Extract Weights Used to Pool Estimates

weights.rbindWald_lmmR Documentation

Extract Weights Used to Pool Estimates

Description

Extract weights used to pool estimates.

Usage

## S3 method for class 'rbindWald_lmm'
weights(object, method, effects = "Wald", transform.names = TRUE, ...)

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.gls1", "pool.rubin".

effects

[character] should the weights relative to the Wald test be output ("Wald"), or the one relative to the linear mixed model parameters ("all")?

transform.names

[logical] should the name of the coefficients be updated to reflect the transformation that has been used?

...

Not used. For compatibility with the generic method.

Value

a numeric vector whose elements sum to 1.

Examples

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 = c("average","pool.se","pool.gls"))

bozenne/repeated documentation built on July 16, 2025, 11:16 p.m.