search for: daspringate

Displaying 4 results from an estimated 4 matches for "daspringate".

2017 Oct 07
2
Adjusted survival curves
For adjusted survival curves I took the sample code from here: https://rpubs.com/daspringate/survival and adapted for my date, but got error. I would like to understand what is my mistake. Thanks! #ADAPTATION FOR MY DATA library(survival) library(survminer) df<-read.csv("F:/R/data/base.csv", header = TRUE, sep = ";") head(df) ID start stop censor sex age stage treat...
2017 Oct 07
2
Adjusted survival curves
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 1 0 66 0 2 1 3 1 2 2 0 18 0 1 2 4 2 3 3 0 43 1 2 3 3 1 4 4 0 47 1 2 3 NA...
2017 Oct 09
0
Adjusted survival curves
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 Newmiller: "Change the columns into factors before you give them to the coxph func...
2017 Oct 09
0
Adjusted survival curves
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 <- df df2[,c('treatment', 'age', ...