psampcalc: Determines sample size by strata using sub-units

Description Usage Arguments Value References

View source: R/psampcalc.R

Description

Determines sample size by strata using sub-units

Usage

1
psampcalc(df, n, strata, unit, over = 0)

Arguments

df

object containing full sampling data frame (e.g. data)

n

sample size (integer) or object containing sample size

strata

variable in sampling data frame by which to stratify (e.g. region)

unit

variable in sampling data frame containing sub-units (e.g. population)

over

(optional) desired oversampling proportion (defaults to 0; takes value between 0 and 1 as input)

Value

Returns sample size per strata based on sub-units (rounded up to nearest integer)

References

[1] Sampling Design & Analysis, S. Lohr, 1999, 4.4


sampler documentation built on Sept. 15, 2019, 5:02 p.m.