glm.cox {adelie} | R Documentation |
Creates a Cox GLM family object.
Description
Creates a Cox GLM family object.
Usage
glm.cox(start, stop, status, weights = NULL, tie_method = "efron")
Arguments
start |
Start time vector. |
stop |
Stop time vector. |
status |
Status vector. |
weights |
Observation weights. |
tie_method |
The tie-breaking method. |
Value
Cox GLM object.
Examples
n <- 100
start <- sample.int(20, size=n, replace=TRUE)
stop <- start + 1 + sample.int(5, size=n, replace=TRUE)
status <- rbinom(n, 1, 0.5)
obj <- glm.cox(start, stop, status)
[Package adelie version 1.0.1 Index]