powered by
Usually the first step to mulitple linear regression is the simple linear regressions with single independent variable.
lr0(Formula, Data)
a conventional formula for a linear model
a data.frame to be analyzed
data.frame
Each row means one simple linear regression with that row name as the only independent variable.
estimate of the intecept
standard error of the intercept
estimate of the slope
standard error of the slope
R-squared for the simple linear model
p-value of slope or the model
It performs .
# NOT RUN { lr0(uptake ~ Plant + Type + Treatment + conc, CO2) lr0(mpg ~ ., mtcars) # }
Run the code above in your browser using DataLab