summary.my_lm | R Documentation |
Calculates standard error, t-test values, and p-values for each parameter estimate.
## S3 method for class 'my_lm'
summary(object, ...)
## S3 method for class 'summary.my_lm'
print(x, ...)
object |
An object with the class of |
... |
Additional options. |
x |
An object with the class of |
An object of class summary.my_lm
that contains:
est_mat
: A matrix
with the following named columns...
Estimate
: The parameter (beta) estimated values
Std. Err
: The standard error values for the parameter estimates.
t value
: The t-test value for the parameter estimate.
Pr(>|t|)
: The p-value for the t-test value on the parameter.
call
: Information on how the my_lm()
function was called.
my_lm()
, print.summary.my_lm()
# Compute the model
model = my_lm(mpg ~ disp, data = mtcars)
# Calculate the inference values
model_inference = summary(model)
# Display inference values
model_inference
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.