Hi everyone, wondering if anyone can help as I seem stuck.
I have a dataset with 105 hospitals and each hospital has a varying number of patients- total patient(24000). I want to select 6 hospital but make sure it represents approximately 20% of patients (total -4910). But not sure how. So far i have tried
bsample 6, cluster ()
But this just randomly gives any 6 hospital sometimes is more than 20% and sometimes less.
Is there anything else I can try?
Many thanks
Related Posts with Codes for Randomly selecting from a particular cluster but a certain percentage
Confidence intervals to cumulative incidence plotHi! I have conducted a competing risk analysis, where I have three covariates, and would like to ca…
xtline time rangeCurrently I am running into what I think should be an easy to solve problem but haven't found a solu…
new variable for each panel unitDear Stata forum colleagues, I have learnt a lot by following older threads before, but this is my f…
Loop fails to find local macroHi there, I have an issue with one local macro within a fovalues loop. The main purpose of this co…
Interpreting negative binomial coefficient with log IVHello, I'm having a hard time trying to interpret the results of a negative binomial regression (xt…
Subscribe to:
Post Comments (Atom)
0 Response to Codes for Randomly selecting from a particular cluster but a certain percentage
Post a Comment