weights.wglm {riskRegression}R Documentation

Extract IPCW Weights

Description

Extract IPCW weights of IPCW logistic regressions.

Usage

## S3 method for class 'wglm'
weights(object, times = NULL, prefix = "t", simplify = TRUE, ...)

Arguments

object

a wglm object.

times

[numeric vector] time points at which the weights should be output.

prefix

[character] used to name the columns. Can be NA to keep the original names.

simplify

[logical] should the ouput be converted to a vector when only one timepoint is requested. Otherwise will always return a matrix.

...

Not used.


[Package riskRegression version 2025.05.20 Index]