ancova_single {rbmi} | R Documentation |
Implements an Analysis of Covariance (ANCOVA)
Description
Performance analysis of covariance. See ancova()
for full details.
Usage
ancova_single(
data,
outcome,
group,
covariates,
weights = c("proportional", "equal")
)
Arguments
data |
The |
outcome |
Character, the name of the outcome variable in |
group |
Character, the name of the group variable in |
covariates |
Character vector containing the name of any additional covariates to be included in the model as well as any interaction terms. |
weights |
Character, specifies whether to use "proportional" or "equal" weighting for each categorical covariate combination when calculating the lsmeans. |
Details
-
group
must be a factor variable with only 2 levels. -
outcome
must be a continuous numeric variable.
See Also
Examples
## Not run:
iris2 <- iris[ iris$Species %in% c("versicolor", "virginica"), ]
iris2$Species <- factor(iris2$Species)
ancova_single(iris2, "Sepal.Length", "Species", c("Petal.Length * Petal.Width"))
## End(Not run)
[Package rbmi version 1.2.6 Index]