cat_summary {BioPred}R Documentation

Summarize Categorical Variables in Subgroup

Description

This function provides a summary of categorical variables in a dataset.

Usage

cat_summary(
  yvar,
  yname,
  xvars,
  xname.list,
  data,
  yvar.display = yvar,
  xvars.display = xvars
)

Arguments

yvar

Name of the variable for summary.

yname

A vector of ordered y values.

xvars

Names of the variables for grouping.

xname.list

A list (same order as xvars) of ordered x values for each xvar.

data

The dataset.

yvar.display

Display name for yvar.

xvars.display

Display name for xvars.

Value

A list containing the contingency table, frequency table, and percentage table.


[Package BioPred version 1.0.1 Index]