Displaying 1 result from an estimated 1 matches for "subscript_vector".
2013 Nov 14
1
issues with calling predict.coxph.penal (survival) inside a function
...ts them with
>
> the predicted risk-scores. Because there are cases where my new data has
> strata which didn't exist in the original model I exclude
>
> them, using a Boolean vector inside the function.
>
> I end up with a call like this: predict (coxph_model,
> newdata[subscript_vector,] )
>
>
>
> This works fine for coxph.model, but when I fit a model with a spline
> (class coxph.penal), I get an error:
>
> "Error in `[.data.frame`(newdata, [subscript_vector, ) : object
> '[subscript_vector ' not found"
>
>
>
> I suppose this...