serrst: Estimation of margins of errors (MOEs) for a proportion in a...

Description Usage Arguments Examples

View source: R/serrst.R

Description

This function provides flexibility to estimate margins of errors for a proportion with a stratified sample assuming different population sizes, confidence levels, design effects (DEff), and response rates.

Usage

1
2
serrst(n, N = NULL, W = NULL, deff = 1, rr = 1, p = 0.5, cl = 0.95,
  relative = FALSE)

Arguments

n

Vector of sample size of each stratum.

N

Value or vector of values with the population size of each stratum.

W

Proportion of each stratum in the target population. If the population size is not specified, MOEs are estimated using the infinite population formula.

deff

A value or vector of values with design effects (DEff) provided from previous studies.

rr

Proportion representing expected response rate, it migth be 0 or more, and less than 1.

p

Value or vector of values with the expected proportion of each stratum.

cl

Confidence levels, e.g., .95

relative

Logical parameter. Estimate a relative error if TRUE.

Examples

1
serrst(n = c(100, 300, 100), N = c(500, 1000, 600))

sdaza/sampler documentation built on Feb. 3, 2018, 11:04 p.m.