extract_CoxPoly: This is a function to extract log HR based on the resuls from...

View source: R/CoxPoly.R

extract_CoxPolyR Documentation

This is a function to extract log HR based on the resuls from CoxPoly

Description

This is a function to extract log HR based on the resuls from CoxPoly

Usage

extract_CoxPoly(fit, lag)

Arguments

fit

A model from CoxPoly

lag

A lag time, or a vector of lag times

Value

A data frame with one row per lag, giving the estimated log HR and its variance at each lag time

Examples

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))

LatencyA documentation built on Oct. 21, 2026, 5:14 p.m.