bivariate: bivariate

Description Usage Arguments Author(s) See Also

Description

bivariate Performs bivariate analysis of two categorical variables. The analysis includes a chi-square test of association and difference in proportion tests for each level of the categorical explanatory variable, ordered by proportion.

Usage

1
2
bivariate(data, y, x, title, response = "c", success = "Non-Traditional",
  conf = 0.95, alpha = 0.05, alternative = "two.sided")

Arguments

data

Data frame containing response and explanatory variable

y

Character string description for the response variable

x

Character string description of the explanatory variable

title

Character string containing the plot title

response

Character string indicating whether the response is categorical or numeric c("c", "n")

success

Character string for the factor variable considered the success factor

conf

Numeric between 0 and 1 for the designated confidence level

alpha

Numeric between 0 and 1 for the probability of a type I error

alternative

Character string indicating whether the alternative hypothesis is "two.sided", "less", or "greater"

Author(s)

John James, jjames@datasciencesalon.org

See Also

Other xmar functions: analyze2DData, analyzeTrend, diffTest, multivariate, plotBars, plotDiffTest, plotLines, plotX2, preprocess, univariate, x2Test, x2TrendTest


DataScienceSalon/xms documentation built on May 28, 2019, 12:24 p.m.