fit_Fcontrasts | R Documentation |
This function calculates F-contrasts for a fitted linear model.
fit_Fcontrasts(lmfit, conmat, colind)
lmfit |
Fitted linear model object. |
conmat |
Contrast matrix. |
colind |
Column indices corresponding to the variables in the contrast matrix. |
A list containing the following elements:
estimate
: Estimated contrasts.
se
: Residual variance.
stat
: F-statistics for the contrasts.
prob
: Probabilities associated with the F-statistics.
stat_type
: Type of the statistics calculated.
data(mtcars)
lm_fit <- lm(mpg ~ wt + qsec + am, data = mtcars)
contrast_matrix <- matrix(c(0, -1, 1), nrow = 1, byrow = TRUE)
fit_Fcontrasts(lm_fit, contrast_matrix, c(2, 3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.