Description Usage Arguments Value See Also Examples
View source: R/survFit.ELMmboost.R
An Extreme Learning Machine Cox Model with Gradient Based Boosting
1 2 |
object |
An ELMmboost object. |
newdata |
An optional data frame in which to look for variables with which to predict the survivor function. |
... |
Additional arguments for mboost. |
Object of class survFit
with elements
surv | Estimated survival probabilities at the given time points |
time | The evaluated given time points. |
n.event | Number of observed events at given at time points. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | set.seed(123)
require(SurvELM)
require(survival)
#Lung DATA
data(lung)
lung=na.omit(lung)
lung[,3]=lung[,3]-1
n=dim(lung)[1]
L=sample(1:n,ceiling(n*0.5))
trset<-lung[L,]
teset<-lung[-L,]
rii=c(2,3)
elmsurvmodel=ELMmboost(x=trset[,-rii],y=Surv(trset[,rii[1]], trset[,rii[2]]))
sfit=survFit(elmsurvmodel)
# plot the survival probability
plot(sfit, xlab = "Time", ylab = "Survival Probability")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.