I want to create a random subsample of my original sample; I am basically drawing geographical area to which I will apply a treatment.
So, I have a few questions on random drawing:
- Is there are a way to randomly draw observations from a larger dataset, to create a subsample?
- If the answer to 1. is "yes", is it possible to carry out a conditional drawing, that is, observations with certain characteristics cannot be drawn? I guess that the simplest thing here is just to drop unwanted observations from the original sample.
- What about weighted drawing, that is, observations with certain characteristics are more or less likely to be drawn?
- What about drawing with and without replacement (some of the areas to which I will apply a treatment have a larger population, so I might be applying the tratment to them multiple times)?
It is the first time I try to create a subsample this way with Stata.
0 Response to Create a subsample - Conditional, weighted random draw of observations, with repalcement
Post a Comment