univariateQual: univariateQual

Description Usage Arguments Value Author(s) See Also

View source: R/univariateQual.R

Description

univariateQual Performs univariate analysis on a group of dichotomous qualitative variables with uniform category levels. The function returns a combined contingency table for all groups and categories, as well as a stacked bar plot showing frequencies and percentages of categories for each group.

Usage

1
2
univariateQual(data, type = "dichotomous", groups, xLab, yLab = NULL,
  plotTitle = NULL)

Arguments

data

Wide data frame containing:

  • Character string containing the grouping variale

  • Character string containing the category level

  • Numeric containing the frequencies by category level

  • Numeric indicating the proportions by category level

  • Numeric containing the cumulative proportion by group and category level

  • pos the vertical position of the labels on the bars

type

Character string indicating whether data is dichotomous, ordinal, or nominal

groups

Character vector containing the group names to be rendered along the x-axis

xLab

Character string containing the label for the x-axis

yLab

Character string indicating the label for the y-axis

plotTitle

Character string indicating the plot title.

Value

analysis List containing: 1. Contingency table 2. Stacked Frequency Proportion Barplot

Author(s)

John James, jjames@datasciencesalon.org

See Also

Other EDA functions: bivariateQual, bivariateQuant, bivariate, univariateQuant, univariate


DataScienceSalon/Bayesian-Regression documentation built on May 29, 2019, 12:06 a.m.