Determines sample size by strata using sub-units
psampcalc(df, n, strata, unit, over = 0)
object containing full sampling data frame (e.g. data)
sample size (integer) or object containing sample size
variable in sampling data frame by which to stratify (e.g. region)
variable in sampling data frame containing sub-units (e.g. population)
(optional) desired oversampling proportion (defaults to 0; takes value between 0 and 1 as input)
Returns sample size per strata based on sub-units (rounded up to nearest integer)
[1] Sampling Design & Analysis, S. Lohr, 1999, 4.4