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
Creating local (or global) macro of past date (or range), in DDNNCCYY formatHi, I am trying to save a date range as a macro. I have it working to a degree with: Code: su dat…
Theoretical question about the importance of stationarity in panel data for OLS estimatorDear all, I have been doing some reading on the importance of the stationarity property for the dep…
marginsplot after running a multinomial logit: how to plot the cumulative probabilities as an area graph Hello, I have been using the marginsplot function plot predicted probabilities after mlogit estimat…
Clustered standard errors with cross-sectional dataI am using census data which I read is typically clustered by neighborhood. Would it be acceptable t…
Parsing a string variable of a dta file using a dictionaryHi everyone! I am trying to parse a string variable called "record" within a .dta file. How would I…
Subscribe to:
Post Comments (Atom)
0 Response to generate random number using loop
Post a Comment