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.
wanting to run STATA via a websocketHi, I am setting up stata on a Linux server and am hoping there is a way to run stata using websocke…
Divide betas in StataDear Statalists, I would like to estimate two regressions and divide the estimated betas (i.e. comp…
How to get excel file from dta file of data set, not results.Hello, I would like to change dta dataset to excel file(not result of analysis, but the data set as…
Calibration plot for melogitHi, I am working on a multilevel logistic regression and want to produce a calibration plot. The us…
network rank min and sucra prob errorsHi , I am trying to generate a cumulative probability graph and rankograms for my network meta analy…
Subscribe to:
Post Comments (Atom)
0 Response to Stratified sample using one stratum.
Post a Comment