lr0 {sasLM} | R Documentation |
Simple Linear Regressions with Each Independent Variable
Description
Usually, the first step to multiple linear regression is simple linear regressions with a single independent variable.
Usage
lr0(Formula, Data)
Arguments
Formula |
a conventional formula for a linear model. Intercept will always be added. |
Data |
a |
Details
It performs simple linear regression for each independent variable.
Value
Each row means one simple linear regression with that row name as the only independent variable.
Intercept |
estimate of the intecept |
SE(Intercept) |
standard error of the intercept |
Slope |
estimate of the slope |
SE(Slope) |
standard error of the slope |
Rsq |
R-squared for the simple linear model |
Pr(>F) |
p-value of slope or the model |
Author(s)
Kyun-Seop Bae k@acr.kr
Examples
lr0(uptake ~ Plant + Type + Treatment + conc, CO2)
lr0(mpg ~ ., mtcars)
[Package sasLM version 0.10.4 Index]