makeNewData2: Make new data for predict

Description Usage Arguments Examples

View source: R/predictModel.R

Description

Make new data for predict

Usage

1
makeNewData2(model, length = 100, by = NULL, type = "response")

Arguments

model

An object

length

numeric length of continuous variable to to predict

by

character optional factor variable

type

character type argument to be passed to predict.gam

Examples

1
2
model=lm(mpg~wt+hp+am,data=mtcars)
makeNewData2(model)

cardiomoon/webr2 documentation built on April 24, 2020, 9:44 p.m.