python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Loop in Cox regression
I am trying to run a cox regression for 1000 variables (exposure) as below
varlist <- names(dataset)[275:1275]
sumtables <- lapply(varlist, function(i) {
iformula <- as.formula(...
momaz
Votes: 0
Answers: 2
Python CoxPHFitter to extract hazard ratio and confidence intervals
I am new to survival analysis and I have been reading many research paper where the authors report adjusted (age and gender) and unadjusted hazard ratios along with confidence intervals. I am currentl...
Taby
Votes: 0
Answers: 2
How to plot the X year survival probability(let's say X=10) from a COX regression model with the change of covariate?
I noticed that most codes provided for survival curve plot are about the trend of survival by time, is there any r package that can set "time" as fixed, e.g 10 years, and plot the 10-year su...
Orieo_077
Votes: 0
Answers: 1
How to create a data.frame in format start-stop for a dependent time covariable who initial state can be 0 or 1
I´d like to get a data.frame in format start-stop for a time dependent covariate (trabajo) who initial state (trab0) can be 0 or 1, and change at a time (timetrab1) to trab1.
In this way, a patient ca...
Miguel Angel Arnau
Votes: 0
Answers: 0