Description Usage Arguments Details Value Examples

Predicting a response for new subjects based on a fitted penalized regression model.

1 2 |

`object` |
The fitted model (a |

`penalized` |
The matrix of penalized covariates for the new subjects. |

`unpenalized` |
The unpenalized covariates for the new subjects. |

`data` |
A |

The user need only supply those terms from the original call that are different relative to the original call that produced the `penfit`

object. In particular, if penalized and/or unpenalized was specified in matrix form, a matrix must be given with the new subjects' data. The columns of these matrices must be exactly the same as in the matrices supplied in the original call that produced the `penfit`

object. If either penalized or unpenalized was given as a `formula`

in the original call, the user of `predict`

must supply a new `data`

argument. As with matrices, the new `data`

argument must have a similar make-up as the `data`

argument in the original call that produced the `penfit`

object. In particular, any factors in `data`

must have the same levels.

The predictions, either as a `vector`

(logistic and Poisson models), a `matrix`

(linear model), or a `breslow`

object (Cox model).

1 2 3 4 5 6 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.