I got advice here that I didn't understand! Can I ask to explain me the meaning
of this procedure: first get the structure, and then assign it back. For what?
Thanks! (Great thanks to Moderator/Admin!)
You should learn to post in plain text and use dput to present your data
structures. At you
Adjusted survival curves. (Sample code here:
https://rpubs.com/daspringate/survival )
Deep gratitude to Moderator/Admin!
At David Winsemius prompt, more elegant working code:Thanks, Ted :)
library(survival)
library(survminer)
df<-read.csv("F:/R/data/edgr-orig.csv", header = TRUE, sep = ";")
df2
Adjusted survival curves (Thanks to sample code:
https://rpubs.com/daspringate/survival )
Thanks to Moderator/Admin's Great Work! For a successful solution I used advice
that could be understood:
1. Peter Dalgaard: The code does not work, because the covariates are not
factors.
2. Jeff Newmill
For adjusted survival curves I took the sample code from here:
https://rpubs.com/daspringate/survival
and adapted for my date, but ... have a QUESTION.
library(survival)
library(survminer)
df<-read.csv("base.csv", header = TRUE, sep = ";")
head(df)
ID start stop censor sex age stage treatment
1
4 matches
Mail list logo