To perform simple random sampling in STATA, you can use the "sample" command. Here's an example of how you can use it:
Open your dataset in STATA.
Determine the total number of observations in your dataset. You can use the "count" command to get the total count. Let's assume your dataset has 80 observations.
Specify the desired sample size. For example, let's say you want to select a random sample of 20 observations from your dataset.
Use the "sample" command to perform simple random sampling.
[ Ссылка ]
[ Ссылка ]
[ Ссылка ]
Ещё видео!