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

View source: R/compareDichotomicBy.r

compareDichotomicByR Documentation

Generate a canonical description table to describe multiple dichotomic variables

Description

By default, the first level is the 'correct' answer. Includes: - Proportion of correct - Chi-Square test - Effect size: Cramer V

Usage

compareDichotomicBy(
  vars,
  g,
  varnames = colnames(vars),
  success = NULL,
  descriptives = "both"
)

Arguments

vars

a data.frame with variables

g

groups to divide the information into

varnames

variables to analyze

success

value to considered as success

descriptives

value to present as descriptive. Could be 'n', 'p' or 'both'


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