SscSrsProp {SscSrs} | R Documentation |
Sample size calculator for estimation of population proportion under SRS
Description
The SscSrsProp function calculates the sample size required for estimation of population proportion under Simple Random Sampling (SRS) with or without replacement sampling design for a given confidence level and relative error under the assumption than population CV is unknown. Further, the function provides the number of additional sample units to be surveyed over the preliminary sample under both SRS with or without replacement.
Usage
SscSrsProp(replace, alpha, re, N, preliminary_sample)
Arguments
replace |
replace=TRUE, if sampling design is SRSWR and replace=FALSE, if sampling design is SRSWOR. |
alpha |
Level of significance value, alpha=0.01 at 1 percent level of significance and alpha=0.05 at 5 percent level of significance. |
re |
Relative error in the estimation of population proportion (e.g. 0.1, 0.5). |
N |
Population size. When sampling design is SRSWR, then write NA. |
preliminary_sample |
Values of the study variable (in 0 or 1) for the preliminary sample. |
Details
This function returns the required sample size as well as additional sample units to be surveyed over the preliminary sample for both SRS with or without replacement sampling design.
Value
A list with the following components:
Required sample size |
Sample size required for estimation of population proportion. |
Additional sample units to be surveyed |
Additional sample units to be surveyed over the preliminary sample for estimation of population proportion. If the value of additional sample units to be surveyed is negative, then preliminary sample is considered as the final sample. |
References
Cochran, W. G. (1977). Sampling Techniques, 3rd Edition. New York: John Wiley & Sons, Inc.
Singh, D. and Chaudhary, F.S. (1986). Theory and Analysis of Sample Survey Designs. New York: John Wiley & Sons, Inc.
Sukhatme, P.V., Sukhatme, B.V., Sukhatme, S. and Asok, C. (1984). Sampling Theory of Surveys with Applications. Iowa State University Press, Ames and Indian Society of Agricultural Statistics, New Delhi.
Examples
# Calculate sample size for SRSWOR design for estimation of population proportion
preliminary_sample=c(1,0,1,1,1,0,0,0,1,1)
SscSrsProp(FALSE, 0.05, 0.2, 500, preliminary_sample)
# Calculate sample size for SRSWR design for estimation of population proportion
preliminary_sample=c(1,0,1,1,0,1,1,1,0,0,0,1,1,1,1)
SscSrsProp(TRUE, 0.05, 0.2, NA, preliminary_sample)