由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - Help on nomogram
相关主题
请教一个随机分布的问题need some help about survival analysis in SAS code
[急求助] survival analysis (SAS)问个弱智问题,表扁俺,谢谢各位牛牛了~
问关于survival analysis的R codehow to draw an area in sas
An R questionproc phreg 的 projecte probability.
包子求助Survival问题,很菜,请大家包涵急问一个概率题
求教:怎样reshape data in R请教一个sample size calculation的问题
Power of interim analysisa regression model test issue
请教一个fit Cox PHREG model的问题Is there any way to calculate c index for competing risk survival model
相关话题的讨论汇总
话题: nomogram话题: surv话题: nom话题: points话题: retime
进入Statistics版参与讨论
1 (共1页)
a*******g
发帖数: 80
1
Hi, I used Dr. Harrell's rms package to make a nomogram.
Below is my code for nomogram and calculate total points and probability in
original data set used for building the nomogram. My question is how I get
the formula for calculating the survival probability for this nomogram. Then
I can use this formula to do validation by using other data set.
f1 <- cph(Surv(retime,dfs) ~ age+her2+t_stage+n_stage+er+cytcyt+Cyt_PCDK2 ,
data=data11,
surv=T, x=T, y=T, time.inc=5)
surv<- Survival(f1)
surv10 <- function(lp) surv(10,lp)
surv5 <- function(lp) surv(5,lp)
quant <- Quantile(f1)
at.surv <- c(0.1, 0.3, 0.5, 0.7, 0.9)
nom<- nomogram(f1, conf.int=F,
fun=list(surv5, surv10), funlabel=c('5-Year Survival Probability', '10-Year
Survival Probability' ), lp=F,
fun.at=c(at.surv, at.surv))
################# total points ##########################

age.p <- lm(nom[[1]]$points ~ nom[[1]]$age)
tot.points <- (age*age.p$coef[2]+age.p$coef[1])+
(her2=='Positive')*nom[[2]]$points[2] +
(t_stage=='T2/T3')*nom[[3]]$points[1]+(n_stage=='N1/N2')*nom[[4]]$points[2]+
(er=='Negative')*nom[[5]]$points[1] +
(cytcyt=='Positive')*nom[[6]]$points[2]+(Cyt_PCDK2=='Positive')*nom[[7]]$
points[2]
summary(tot.points)
data22 <- data.frame(retime=retime, dfs=dfs, tot.points=tot.points)
fit <- cph(Surv(retime, dfs) ~ tot.points,data=data22 ,surv=T, x=T, y=T,
time.inc=5)
survff <- survfit.cph(fit, newdata=data22)
times <-survff$time
probb <- survff$surv
############# 5 year ##################
indd <- times==times[times<=5][length(times[times<=5])]
probb2 <- probb[indd,] ## 5-year surv prob for each patient
I would very much appreciate any assistance in this matter.
Thank you Very much.
1 (共1页)
进入Statistics版参与讨论
相关主题
Is there any way to calculate c index for competing risk survival model包子求助Survival问题,很菜,请大家包涵
expected survival curve in R求教:怎样reshape data in R
根据劳工部的PERM统计数字, statistician的收入09年比08年有Power of interim analysis
[合集] 根据劳工部的PERM统计数字, statistician的收入09年比08年请教一个fit Cox PHREG model的问题
请教一个随机分布的问题need some help about survival analysis in SAS code
[急求助] survival analysis (SAS)问个弱智问题,表扁俺,谢谢各位牛牛了~
问关于survival analysis的R codehow to draw an area in sas
An R questionproc phreg 的 projecte probability.
相关话题的讨论汇总
话题: nomogram话题: surv话题: nom话题: points话题: retime