Description Usage Arguments Details Value Author(s) References Examples
Calculates the prediction bands under the null hypothesis.
1 2 3 |
x |
An object of class |
idx |
The index number of covariates whose the prediction band is calculated. |
level |
The required level for prediction bands. |
cval |
Parameter used to calculate the symmetric prediction bands defined by the standard error multiplied by cval. |
... |
additional arguments. |
This function is derived from confint.cumres of gof package.
t |
Ordered values of the variable used : unique times for proportionality and unique observations of covariates for functional form. |
yu |
Upper simultaneous confidence limit. |
Patrick Sfumato and Jean-Marie Boher.
Holst KK (2014). gof: Model-diagnostics based on cumulative residuals. R package version 0.9.1, URL https://CRAN.R-project.org/package=gof.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | require(cmprsk)
#Simulating survival data with competing events
set.seed(10)
ftime <- rexp(200)
fstatus <- sample(0:2,200,replace=TRUE)
cov <- matrix(runif(200),nrow=200)
# Fine & Gray regression
fit.crr <- crr(ftime,fstatus,cov)
#Checking the covariates functional form assumption
k<-fcov(model=fit.crr, ftime=ftime,fstatus=fstatus,cov1=cov)
#Prediction bands
predband(k)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.