# the sampling frame is stratified by region within state. # the variable "region" has 3 categories (1, 2 and 3). # the variable "state" has 2 categories ('nc' and 'sc'). # generates artificial data (a 235X3 matrix with 3 columns: state, region, income). # Example from An and Watts (New SAS procedures for Analysis of Sample Survey Data) The function produces an object, which contains the following information: The data should be sorted in ascending order by the columns given in the stratanames argument before applying the function. Of selected units and the number of the units in the population. If anĪuxiliary information is provided, the function uses the inclusionprobabilities function forĪ message is printed if its value is TRUE the message gives the number This argument is only used for unequal probability sampling (Poisson and systematic). Vector of inclusion probabilities or auxiliary information used to compute them Poisson sampling (poisson), systematic sampling (systematic) if "method" is missing, Sampling without replacement (srswor), simple random sampling with replacement (srswr), Method to select units the following methods are implemented: simple random Vector of stratum sample sizes (in the order in which the strata are given in the input "systematic"), pik,description=FALSE) Arguments dataĭata frame or data matrix its number of rows is N, the population size. Usage strata(data, stratanames=NULL, size, method=c("srswor","srswr","poisson", Stratified sampling with equal/unequal probabilities.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |