Description Usage Arguments Value Examples
This function fits a linear model in the form of the specified formula using the given data.
1 |
formula |
A formula class object that specifies the structure of the model. |
data |
A data frame that contains the variables of the model. |
A matrix in the form of a table that contains an estimate, standard error, t-value, and p-value of each coefficient.
1 2 3 4 5 6 | ## Load in the penguins data set included in project3part1package
data(my_penguins)
my_penguins <- na.omit(my_penguins)
my_lm(bill_length_mm ~ bill_depth_mm + flipper_length_mm, data = my_penguins)
my_lm(body_mass_g ~ bill_length_mm - 1, data = my_penguins)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.