Description Usage Arguments Value Examples
Uses QR decomposition to compute a linear regression model from the specified formula and included data. It returns the values calculated in a new S3 class called "linreg"
1 |
formula |
The formula for the linear regression model, in the class "formula" |
data |
A data set including the variables that the model contains |
Returns the class "linreg" and all the values in a list.
All the variables included in the list:
argnames - The name of the data set and formula used
coefficients - Coefficients of the variables used in the model
fitted_values - Predicted values from the model
residuals - Residuals of from the model
df - Degrees of freedom of the model
sigma_sq - Variance
variance_coef - Variance of the coefficients
t_values - t-values for each coefficient
p_values - P-values for each coefficient
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.