plotDiffTest: plotDiffTest

Description Usage Arguments Value Author(s) See Also

Description

plotDiffTest Renders a plot of the normal distribution plot for difference in proportions test with critical regions shaded.

Usage

1
2
plotDiffTest(x, y, zAlpha, zScore, lb = -Inf, ub = Inf, mean = 0,
  sd = 1, limits = c(mean - 3 * sd, mean + 3 * sd))

Arguments

x

= Character string with name of group associated with proportion 1

y

= Character string with name of group associated with proportion 2

lb

Lower bound of the shaded area. Use -Inf for a left tail.

ub

Upper bound of the shaded area. Use Inf for a right tail.

mean

Mean of the normal distribution

sd

Standard deviation of the normal distribution

limits

Lower and upper bounds on the x-axis of the area displayed.

dp

Dataframe summarizing results of a difference in proportions test

Value

ggplot object.

Author(s)

John James, [email protected]

See Also

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


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