Learn R Programming

tigerstats (version 0.1.6)

SampDist2Props: Difference of Two Sample Proportions

Description

An app to explore the sampling distribution of the difference of two sample proportions.

Usage

SampDist2Props(form,data,max.sample.sizes=100,sim.reps=1000)

Arguments

form
An object of class formula, of the form ~x+y where x and y are factors supplied by:
data
A dataframe, representing the imaginary population. In the formula, both factors should have exactly two levels. The variable x represents the explanatory variable.
max.sample.sizes
Maximum sample sizes allowed on the sliders.
sim.reps
Number of samples to construct the empirical distribution.

Value

  • Graphical and numerical output.

Examples

Run this code
data(imagpop)
SampDist2Props(~sex+cappun,data=imagpop)

Run the code above in your browser using DataLab