powered by
calculated slope and intercept from object of class lm
calEquation( fit, mode = 1, pred = NULL, modx = NULL, modx.values = NULL, label = NULL, maxylev = 6, digits = 2 )
An object of class lm
A numeric
name of predictor variable
name of modifier variable
Numeric. Values of modifier variable
A character string
maximum length of unique value of variable to be treated as a categorial variable
Integer indicating the number of decimal places
fit=lm(mpg~wt*hp+carb,data=mtcars) calEquation(fit) calEquation(fit,pred="hp")
Run the code above in your browser using DataLab