| extract_CoxPoly | R Documentation |
This is a function to extract log HR based on the resuls from CoxPoly
extract_CoxPoly(fit, lag)
fit |
A model from CoxPoly |
lag |
A lag time, or a vector of lag times |
A data frame with one row per lag, giving the estimated log HR and its variance at each lag time
time_start <- "age_start"
time_end <- "age_end"
status <- "failure"
exposure <- paste0("lag", 0:19)
degree <- 3
latency <- 20
fit <- CoxPoly(sim_data, time_start, time_end, status, exposure, degree, latency)
extract_CoxPoly(fit, 10)
extract_CoxPoly(fit, c(0, 5, 10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.