SampDist2Props: Difference of Two Sample Proportions

View source: R/SampDist2Props.R

SampDist2PropsR Documentation

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.

Author(s)

Homer White hwhite0@georgetowncollege.edu

Examples

## Not run: 
data(imagpop)
SampDist2Props(~sex+cappun,data=imagpop)

## End(Not run)

homerhanumat/tigerstats documentation built on June 13, 2025, 8:34 a.m.