ancova_single | R Documentation |
Performance analysis of covariance. See ancova()
for full details.
ancova_single(
data,
outcome,
group,
covariates,
weights = c("proportional", "equal")
)
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. |
group
must be a factor variable with only 2 levels.
outcome
must be a continuous numeric variable.
ancova()
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.