getNewFormula: Make new formula

Description Usage Arguments Examples

Description

Make new formula

Usage

1
getNewFormula(fit, predictors = NULL)

Arguments

fit

An object of class lm or glm

predictors

Names of variables to exclude

Examples

1
2
3
4
5
6
7
8
fit=lm(mpg~factor(cyl)*factor(am)+wt+carb,data=mtcars)
getNewFormula(fit,predictors=c("cyl","wt"))
fit=lm(Sepal.Length~Sepal.Width*Petal.Length+Species,data=iris)
getNewFormula(fit,predictors=c("Petal.Length"))
fit=lm(mpg~hp*wt*factor(cyl),data=mtcars)
getNewFormula(fit,predictors=c("hp","cyl"))
fit=loess(mpg~hp*wt,data=mtcars)
getNewFormula(fit,predictors=c("hp","wt"))

predict3d documentation built on Sept. 3, 2019, 5:06 p.m.