secmalasct/risk.R
Jens Sauer 00d96d77f2 Add risk.R
Add file to run coxph analysis and print result to file.
2021-01-17 11:41:57 +01:00

17 lines
320 B
R

# Riks factors
#
# License: GPL version 3
# Jens Mathis Sauer (c) 2020
source("coxph.R")
options(width = 150)
sink("risk-analysis.txt")
print("Using following risk predictors:")
print(as.data.frame(covariates))
# Show all coxph univariate models
sma_coxph_univ()
sink()
print("Output written to 'risk-analysis.txt'")