Description Usage Arguments Details Value

View source: R/method_predict.R

Rows with missing values on predictor variables are excluded. An unused column for the dependent variable is added to avoid errors.

1 | ```
prepDatForPredict(formula, newdata)
``` |

`formula` |
Model formula |

`newdata` |
data.frame containing all variables that appear in the model |

A column of ones for the dependent variable is added. Otherwise
`model.matrix`

tries to take it from the formula's
environment, which is the original data. This usually results in an error due
to unequal variable length. This column is however not used.

Object of class `na.exclude`

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.