forv i = 1/10{
if mod(`i',2)==0 gen z`i' = rnormal()
if mod(`i',2)==1 gen z`i' = runiform()
}
i want to generate random number but i am getting only empty variable list please try to help me
Related Posts with generate random number using loop
need urgent helpI tried to do heteroskedasticity test for panel-level data by using the commands from the site menti…
rounding to 0.5, 1.5, 2.5, 3.5 etcHello, I have a question in regard to rounding. As an example I have a data like this: Code: list …
identify sequence!Dear All, Suppose that I have the data Code: clear input long stkcd int year float dummyvar 10 200…
How to create and interpret the interaction term in the following: lnY=*β0 +*β1 lnGDP +*β2 lnFX +*β3 (lnGDP x lnFX) +*ξHello, I regress a bank's one balance sheet item(Y) on GDP, FX (foreign exchange rate), and the int…
Exporting regression results to a Word documentHi all, I'll be very happy if you can help me. I'm trying to export the results of multiple regress…
Subscribe to:
Post Comments (Atom)
0 Response to generate random number using loop
Post a Comment