returns a linear regression model for formula and data inputs
This is a function that builds a linear regression model using ordinary least squares method and RC class. A reference class for linreg
formula
A formula with dependent numeric variable on left and independent numeric variable on right.
data
A dataset
formula
as character
data
as data.frame
call
as vector
coefficients_est
as matrix
fitted_vals
as matrix
residuals_est
as matrix
degrees_of_freedom
as numeric
res_var_est
as matrix
v_coeff
as vector
find_t_vals
as numeric
p_vals
as vector
std_res
as matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.