View source: R/pairwise_comparison.R
pairwise_comparison | R Documentation |
pairwise_comparison
computes pairwise Tukey comparisons for any combination of variables in a given QGAM using
the emmeans
package. Pairwise Tukey comparisons are most sensible to check differences between levels of a
categorical predictor.
pairwise_comparison(
qgam,
quantile = NULL,
factor, by = NULL,
...)
qgam |
A qgam object created with |
quantile |
If |
factor |
The categorical variable you wish to compute Tukey comparisons for. Must be one of the predictor or smooth terms given in the qgam formula. |
... |
Any of the other arguments |
D. Schmitz
Russell V. Lenth (2021). emmeans: Estimated Marginal Means, aka Least-Squares Means. R package version 1.5.4. https://CRAN.R-project.org/package=emmeans
pairwise_comparison(qgam = mtqgam_mqgam, quantile = 0.5, "factor_1")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.