Learn R Programming

SciencesPo (version 1.3.9)

sampleSize: Simple Sample Size for Surveys

Description

Compute sample size for surveys.

Usage

sampleSize(p, delta = "auto", popsize = NULL, deff = 1, alpha = 0.05)

Arguments

p
The proportion.
delta
The error size.
popsize
An integer for the population size.
deff
An intger for the deff.
alpha
The level of alpha/significance.

Examples

Run this code
# Comercial public opinion samples in Brazil:
sampleSize(p=.50, delta=.03)
sampleSize(p=.50, delta=.02)

Run the code above in your browser using DataLab