Description Usage Arguments Value Examples
This function fits a linear model in R.
1 |
formula |
a |
data |
input data frame. |
a summary table:
Estimate, the beta value;
Std. Error, the standard error;
t value the t value;
Pr(>|t|), the p value.
1 2 3 4 | data(mtcars)
my_lm(mpg ~ hp + wt, data = mtcars)
data(my_gapminder)
my_lm(pop ~ gdpPercap, data = my_gapminder)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.