Description Usage Arguments Value Examples
The lm_s function will fit a linear model using given data set. It will automatically print summary of coefficients and anova table of the model. The function may not treat interaction terms correctly and cannot fit a model without an intercept properly.
1 |
formula |
The same object of class "formula" as the origin R function lm(): a symbolic description of the model to be fitted. |
data |
an optional data frame, list containing the variables in the model. If not found in data, the variables are taken from environment(formula), typically the environment from which lm_s is called. |
The function returns the Coefficients' matrix which contain the value, S.E, t-statistics and p-value of each coefficient. The function also will automatically print summary of coefficients and anova table of the model.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.