wenjie2wang / intsurv Goto Github PK
View Code? Open in Web Editor NEWIntegrative Survival Models
Home Page: https://wwenjie.org/intsurv/
License: GNU General Public License v3.0
Integrative Survival Models
Home Page: https://wwenjie.org/intsurv/
License: GNU General Public License v3.0
Received the following issue via emails.
Fitting a Cox cure rate model to the survival::lung
dataset by using intsurv::cox_cure()
and smcure::smcure()
produces different coefficient estimates.
library(survival)
library(intsurv)
library(smcure)
data(lung)
cox_cure(~ age + sex, ~ age + sex, time, status - 1, data = lung)
## Call:
## cox_cure(surv_formula = ~age + sex, cure_formula = ~age + sex,
## time = time, event = status - 1, data = lung)
##
## Coefficient estimates from the survival part:
##
## coef exp(coef) se(coef) z Pr(>|z|)
## age 0.018277 1.018445 NA NA NA
## sex -0.519556 0.594785 NA NA NA
##
## Coefficient estimates from the cure rate part:
##
## coef exp(coef) se(coef) z Pr(>|z|)
## (Intercept) 2.686813 14.684801 NA NA NA
## age 0.016017 1.016146 NA NA NA
## sex -0.397289 0.672140 NA NA NA
smcure(Surv(time, status - 1) ~ age + sex, cureform = ~ age + sex,
data = lung, model = "ph", Var = FALSE)
## Program is running..be patient... done.
## Call:
## smcure(formula = Surv(time, status - 1) ~ age + sex, cureform = ~age +
## sex, data = lung, model = "ph", Var = FALSE)
##
## Cure probability model:
## Estimate
## (Intercept) 8.20142875
## age -0.05227707
## sex -1.29707091
##
##
## Failure time distribution model:
## Estimate
## age 0.02754377
## sex -0.31575014
While the coefficient estimates are close for the bmt
dataset in smcure.
data(bmt)
cox_cure(~ TRT, ~ TRT, Time, Status, data = bmt)
## Call:
## cox_cure(surv_formula = ~TRT, cure_formula = ~TRT, time = Time,
## event = Status, data = bmt)
##
## Coefficient estimates from the survival part:
##
## coef exp(coef) se(coef) z Pr(>|z|)
## TRT 0.63639 1.88965 NA NA NA
##
## Coefficient estimates from the cure rate part:
##
## coef exp(coef) se(coef) z Pr(>|z|)
## (Intercept) 1.0567 2.8770 NA NA NA
## TRT 0.3578 1.4302 NA NA NA
smcure(Surv(Time, Status) ~ TRT, cureform = ~ TRT,
data = bmt, model = "ph", Var = FALSE)
## Program is running..be patient... done.
## Call:
## smcure(formula = Surv(Time, Status) ~ TRT, cureform = ~TRT, data = bmt,
## model = "ph", Var = FALSE)
##
## Cure probability model:
## Estimate
## (Intercept) 1.0565750
## TRT 0.3579095
##
##
## Failure time distribution model:
## Estimate
## TRT 0.6363645
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.