Description Usage Arguments Details Value Author(s) References See Also
predict.smog
can produce the prediction for user-given new data, based on the
provided fitted model (object
) in the S3method of smog
. If the newdata
omitted,
it would output the prediction for the fitted model itself. The yielded result should
match with the family in the provided model. See smog
.
1 2 3 |
object |
a fitted object of class inheriting from smog. |
newdata |
a data frame containing the predictor variables, which are used to predict. If omitted, the fitted linear predictors are used. |
family |
a description of distribution family for which the response variable is to be predicted. |
... |
additional arguments affecting the predictions produced. |
If newdata = NULL
, the fitted.value based on the object
is used for the prediction. For family = "coxph", the returned prediction value
is the risk score.
If family
= "gaussian", a vector of prediction for the response is returned.
For family
= "coxph", a vector of predicted risk score is returned.
When family
= ”binomial”, it outputs a data frame containing the predicted
group labels and the corresponding probabilies.
Chong Ma, chongma8903@gmail.com.
ma2019structuralsmog
smog.default
, smog.formula
, cv.smog
, plot.smog
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.