Description Usage Arguments Value Examples
Function creates from a vector of response variables in a given dataframe, a list of linear model objects. Additionally, a character vector of RHS terms of linear model formula specification, and a dataset needs to be passed.
1 |
df |
A dataframe or any other object of coercible class |
response |
A character vector of response variables to fit a common formula to using 'lm'. |
rhs_terms |
A character vector. Used in specifying the model in the same order that was passed.
Each element of the vector will be passed as a model term in the |
List of lm
objects
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.