Hello to all, I try to learn stata by myself as a economist,
So I want to make a boucle to make a random sample
I want to draw 500 samples of 1000 obs, from 10000 obs
Also in this boucle, if possible, i want to create variable like
x1 -> x1_mean , x2-> x2_mean etc...
Thank to help me, I did'nt put the code because is not working
Related Posts with Random sample
Dropping observations of a variableHey all, Wonderful community here. I'm new to coding in stata. I was curious if someone could walk …
table creation after foreach and selecting variablesHello everybody and thanks in advance. I'm wondering how to create tables in Stata 16 after a loop v…
Removing the variable name and equals sign from legends without using legend(lab()) ?Hi, I am trying to create a series of Kaplan-Meier survival curves based on a series of categorical …
Estimate parameters of an indicator* that* minimize the difference between current GDP and potential GDP.Dear all, I am having a macro panel for a larger period of years and for a number of countries with…
Implementing a loop in rclass programDear all, I would like to implement a loop over a dependent variable in an rclass program. This is…
Subscribe to:
Post Comments (Atom)
0 Response to Random sample
Post a Comment