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
Summarise dataHello, I have a dataset of european regions for each year, but there are multiple entry of each regi…
Euclidean distance matrixHi all, I have 271 unique forum IDs and need to calculate the Euclidean distance between each forum…
export scalar / matrix with putexcel with 2 or 3 decimals using nformatHi, I can't seem to display results with 2 decimal using putexcel and the following option: Code: …
Likert Scale Graph with Mean ScoreCould someone suggest me how Array to draw Likert Scale Graph with Mean Score like below? Thanks. …
PSMatch2 and esttab tables.Dear statalists, I am currently working on a psmatch2 and I want to create professional-looking tab…
Subscribe to:
Post Comments (Atom)
0 Response to appropriate filter
Post a Comment