Learn R Programming

riskRegression (version 2022.09.23)

score.wglm: Score for IPCW Logistic Regressions

Description

Compute the first derivative of the log-likelihood for IPCW logistic regressions.

Usage

# S3 method for wglm
score(x, indiv = FALSE, times = NULL, simplifies = TRUE, ...)

Arguments

x

a wglm object.

indiv

[logical] should the individual score be output? Otherwise the total score (i.e. summed over all individuals will be output).

times

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

simplifies

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

...

Not used.