Whether X Is Associated With Time Until An Event
Use associate$regression() with a time variable for event-time association tests.
- right-censored survival: Cox regression (
cox) - competing event supplied: Fine-Gray regression (
crr)
cox.assoc <- associate$regression(
data,
outcome = demented,
time = age.death,
predictors = everything(),
covariates = c(sex, PCA)
)What comes back
A PolyGeniusAssociations object using the survival regression schema. See the full page for Cox and Fine-Gray fields, event counts, and survival artifacts.
Plotting
visualize$associations$forest(cox.assoc)
visualize$associations$heatmap(cox.assoc)
visualize$associations$survival(cox.assoc)