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
Interpret results from xtabond2Dear all, I have the results from xtabond2 as follows: Code: Dynamic panel-data estimation, two-s…
Creating continuous categories out of discrete observations.Hello I am trying to draw a graph where I want to create continuous categories our of the number of …
identical marginal effects after xtpoisson with fixed-effectsI am trying to estimate the impact of a program introduced in the US in 2007 on the yearly number of…
How to deal with outliers in panel data set?Dear all, I am working on panel data set (220 Observations (Countries,years)), and after implementin…
Bootstrap standard errors for a two step model and multiply imputed dataDear all, I am trying to account for sample selection into the selection of female and male wealth.…
Subscribe to:
Post Comments (Atom)
0 Response to appropriate filter
Post a Comment