predict_broom: Generalised predict function

Description Usage Arguments See Also Examples

View source: R/forcasting_tools.R

Description

Generic function of prediction with function augment() of package broom.

Usage

1
predict_broom(modele, data, new_data, type = "response")

Arguments

modele

broom-compatible model.

data

model data, class "data.frame".

new_data

Put data frame "test".

type

Default at "response" or see predict.glm(), the type of prediction required.

See Also

augment() for initial function.

Other predicting functions: pred_glm_net(), pred_keras(), pred_rpart()

Examples

1
2
3
library(broom)
fit <- glm(Ozone~., data= airquality)
predict_broom(modele= fit, data= airquality, new_data= airquality[2:50,], type= "response")

berthetclement/spam documentation built on Oct. 4, 2020, 9:03 p.m.