ancova.pwc: Pairwise Comparisons of Estimated Marginal Means for ANCOVA...

View source: R/ancova.R

ancova.pwcR Documentation

Pairwise Comparisons of Estimated Marginal Means for ANCOVA Test

Description

This function provides a wrapper for rstatix::emmeans_test for the dependent variables 'dvs'

Usage

ancova.pwc(
  data,
  dvs,
  between,
  covar,
  p.adjust.method = "bonferroni",
  dv.var = NULL,
  as.table = F,
  only.sig = F,
  pwc.covar = F
)

Arguments

data

a data.frame or list containing the data

dvs

numeric columns with the dependent variables to be used in the anova test

between

independent (between) variable in which perform the anova test

covar

column with the covariance information

p.adjust.method

method to adjust p values for multiple comparisons.

dv.var

column with the information to classify observations

as.table

logical value indicating that the result should be returned after to apply 'get.ancova.pwc.table' function

only.sig

logical; if TRUE, only statistical significant results will be tabulated

pwc.covar

logical; if TRUE, the results include covariance comparisons

Value

A data.frame containing the results for the pairwise comparisons


geiser/rshinystatistics documentation built on Feb. 18, 2024, 6:07 p.m.