python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
How to generate covariate-adjusted cox survival/hazard functions?
I'm using the survminer package to try to generate survival and hazard function graphs for a longitudinal student-level dataset that has 5 subgroups of interest.
I've had success creating a model that...
programmingnewbie
Votes: 0
Answers: 2
'Undefined columns selected' error when trying to calculate population attributable risk from a Cox model (using AF::AFcoxph in R)?
For a current project i am trying to calculate the population attributable risk using Hazards obtained from a Cox proportional hazards model. There is a function in the package AF that does this speci...
tcvdb1992
Votes: 0
Answers: 1
How to calculate X-year survival probability from a cox regression of random survival forest in R
I want to build a survival model then calculate the X-year (e.g. 10-year) risk of survival.
Is there a way to do this using coxph or survreg? Is this possible using random survival forest (e.g. ranger...
Adam Waring
Votes: 0
Answers: 1
Time to event analysis in R to explore the effect of a biomarker on an event risk
In R, I analyse time-to-event data to explore the effect of a biomarker on an event risk, adjusting for gender. To do this, I work with data that looks like this toy dataset:
> head(data)
pt sex ...
Svalf
Votes: 0
Answers: 1