compareBy: Generate a canonical description table to describe multiple...

View source: R/compareBy.r

compareByR Documentation

Generate a canonical description table to describe multiple variables for a classification criterium Includes: - Mean and sd for each group - Report of normality of each grupo - Test of differences, adapted to normality of each group - Effect size of differences: d for two groups, f for three or more

Description

Generate a canonical description table to describe multiple variables for a classification criterium Includes: - Mean and sd for each group - Report of normality of each grupo - Test of differences, adapted to normality of each group - Effect size of differences: d for two groups, f for three or more

Usage

compareBy(
  vars,
  g,
  varnames = colnames(vars),
  use.2.bm = FALSE,
  use.3.eta2 = FALSE,
  test.type = "variable",
  show.n = TRUE
)

Arguments

vars

a data.frame with variables

g

vector with groups to divide the information into

test.type

"variable" for contingent on normality test, "parametric" for t and ANOVA and "nonparametric" for U and Kruskall-Wallis

show.n

show the size of each groups

use.2.bm:

Use brunner.munzel.test on variables with two groups

use.3.eta2:

Use eta squared, instead of <code>f</code>, on comparison of three or more groups


clbustos/rcebn documentation built on Feb. 2, 2024, 5:55 a.m.