Hi! I am doing a study about schools in different municipalities and are trying to do a stratified sample using proportional allocation without replacement. I am stratifying with respect to municipalities and then will draw a number of schools from each stratum (at least one school from each municipality). The proportional allocation will be based on the number of schools in each municipality relative to the total number of schools, which means that municipalities with a larger number of schools also have more schools sampled. The total number of schools in my population is 295 and I want to sample 144 of them.
I am trying to use the command gsample but it doesn't work, I don't know if there is a more suitable command....
If someone knows anything about a stratified sample I would be very grateful for there help.
My code: gsample [144|school] [,strata(municipality)]
The output from Stata: weights not allowed
Related Posts with Stratified sample using one stratum.
Modeling a skewed categorical (ordinal) variableHi Statalist, The response scale of my dependent variable is structured as "Not at all" "To a small…
realise a(n)=a(n-1)*b(n) in stataDear all: Sorry for bothering you. I have a problem when I use stata, could you give me some adive?…
Generate data set using cross tabulation cell frequencyDear all, Is it possible to generate data set include two variable using cross tabulation cell frequ…
Help Extracting Year from DateHello everyone, I'm brand new to learning STATA, so I apologize if I am omitting any pertinent infor…
How to extract selected features from LASSO in stataHi, I have somewhat of a basic question. I am running the lasso linear command and wanted to use th…
Subscribe to:
Post Comments (Atom)
0 Response to Stratified sample using one stratum.
Post a Comment