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
esttab producing wrong estimates for imputed marginsHi, Im trying to use esttab to export my margins in some imputed data and while the estimates on the…
Creating dummy variable to indicate if trend increasing or decreasingHello! I am working on a panel dataset. I want to create a dummy variable that indicates weither m…
Using OGLM to Determine Coefficient Inequality across Multiple GroupsI am using Stata 16. I am trying to determine whether the effect of crime type (either coded as dum…
How to compute a synthetic average of alternative ATTs estimated through different matching techniquesDear statalists, I have estimated the average treatment effect on the treated (ATT) of a certain pro…
General Equilibrium gravity equation using PPML_panel_sgHello, Im working on the analysis of the General Equilibrium Effects of an RTA using the WTO Trade P…
Subscribe to:
Post Comments (Atom)
0 Response to Codes for Randomly selecting from a particular cluster but a certain percentage
Post a Comment