ss.2proportion: A function to determine the sample size required to estimate...

Description Usage Arguments Examples

View source: R/expdesign.R

Description

A function to determine the sample size required to estimate the difference of two proportions given a desired confidence level and interval half width

Usage

1
2
3
4
5
6
ss.2proportion(
  halfwidth,
  confidence = 0.95,
  proportion1 = 0.5,
  proportion2 = 0.5
)

Arguments

halfwidth

(required)

confidence

(optional with default of .95)

proportion1

(optional with default of .5)

proportion2

(optional with default of .5)

Examples

1
2
3
ss.2proportion(0.03)
ss.2proportion(0.03, confidence=0.99)
ss.2proportion(0.03, confidence=0.99, proportion1=.1, proportion1=.2)

fzettelmeyer/mktg482 documentation built on May 26, 2020, 2:26 p.m.