View source: R/calculate_models.R
calculate_lm | R Documentation |
calculate_lm
describes the linear model of the last listed variable
in means
and covs
as a function of all other variables in
means
and covs
.
calculate_lm(
means,
covs,
n,
add_intercept = FALSE,
keep_pcss = FALSE,
terms = NULL
)
means |
a vector of means of all model predictors and the response with the last element the response mean. |
covs |
a matrix of the covariance of all model predictors and the
response with the order of rows/columns corresponding to the order of
|
n |
sample size |
add_intercept |
logical. If |
keep_pcss |
logical. If |
terms |
terms |
an object of class "pcsslm"
.
An object of class "pcsslm"
is a list containing at least the
following components:
call |
the matched call |
terms |
the |
coefficients |
a |
sigma |
the square root of the estimated variance of the random error. |
df |
degrees of freedom, a 3-vector |
fstatistic |
a 3-vector with the value of the F-statistic with its numerator and denominator degrees of freedom. |
r.squared |
|
adj.r.squared |
the above |
cov.unscaled |
a |
Sum Sq |
a 3-vector with the model's Sum of Squares Regression (SSR), Sum of Squares Error (SSE), and Sum of Squares Total (SST). |
wolf_using_2021pcsstools
\insertRefwolf_computationally_2020pcsstools
\insertRefgasdaska_leveraging_2019pcsstools
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.