Dear community,
It is my first time using STAT and I am stuck with an assignment.
It says: "In Stata, you can use the function “runiform()” to randomize the selection process. Please set a seed using “set seed #” to obtain the same random numbers, which makes the subsequent results reproducible. The following lines demonstrate how this can be done:
set seed x
generate random = runiform()
Note that x in the first line above is any positive integer (between 0 and 231−1).
Using an appropriate filter on the newly created variable “random” choose your 1000 random observations."
My question:
How do I set the filter for the newly created variable so that I get only 1000 observations?
Thank you for your help
Related Posts with appropriate filter
Difference in Difference Parallel Trends testDear Statalisters, I am running a Difference in Difference analysis. In order to test whether treat…
Pre post analysis with ANOVAGood morning, I was asked to perform a pre-post analysis with ANOVA in order to see the effect of th…
update available of abm_grid: A Mata class for managing a square grid for agent based modelsAn update of the abm_grid class is now available on GitHub: https://github.com/maartenteaches/abm_gr…
F test values are missing, I tried to understand it from the previous post but could not get it.I am very new stata, please pardon me if i sound stupid. I rana regression with xtreg fixed effect w…
Using cmp command for simultaneous equation model with an ordered endogenous variableHello everyone, I’m running a simultaneous equation model with 2 equations as following : Y1 = f(Y…
Subscribe to:
Post Comments (Atom)
0 Response to appropriate filter
Post a Comment