Displaying 2 results from an estimated 2 matches for "predictsurvprob".
2013 Jul 06
1
problem with BootCV for coxph in pec after feature selection with glmnet (lasso)
...f events= 288 (354 df
= 354 variables + time and status => 356 variables)
Here is the pec function and the error:
pec.f <- as.formula(Hist(time,status) ~ 1)
brierGlmnet <- pec(list(glmnet.cox), data = reformat_Dataset,
splitMethod="BootCV", B=50, formula = pec.f)
> Error in predictSurvProb.coxph(object = structure(list(coefficients =
structure(c(-4.27787223119601, :
Prediction matrix has wrong dimensions:
368 rows and 318 columns.
But requested are predicted probabilities for
118 subjects (rows) in newdata and 356 time points (columns)
This may happen when some cov...
2012 Dec 22
1
NRI reclassification table improveProb Cox
As describe in the Hmisc package's improveProb function, that function is for
binary Y. And it's best to use category-free methods.
Frank
Petergodsk wrote
> Hi
>
> I'm new to R.
>
> Is it possible to use the improveProb function to generate categorybased
> NRI using a Cox model?
> I believe I saw someone mentioning the possibility, but I can't find the