Description Usage Arguments Value References Examples
linreg
is used to fit linear regression models.
1 |
formula |
an object of class |
data |
a data frame containing all the variables in the regression model stated in the argument |
linreg
return a named list of class "linreg".
call_arg
return the arguments used to perform the linear regression
y
a vector with the response variable data used
X
the dependent variables expressed with model.matrix
beta_hat
a one column matrix with the coefficients
sigma_2_hat
the residual variance in a 1x1 matrix
y_hat
a one column matrix with the fitted values
e_hat
a one column matrix with the residuals
var_beta_hat
the covariance matrix for the coefficients
t_beta
a matrix with t-values for each coefficient
p_value
a matrix with p-values for each coefficient
data
return the data.frame stated in the argument data
https://en.wikipedia.org/wiki/Linear_regression
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.