Hi,
I am trying to use the runiform function to randomally select 1/3 of the observations. Unfortunately, it seems that the use of the function affects unrelated results.
For example, look at this picture:
Array
As you can see, I am writing the exact same sum command in lines 19 and 25. These are the results of the return list:
Array
The return lists are totally different, even though this is the same sum command, and even though the ruinform command is not related in any way to the summed variable.
Does anyone knows what may causes this?
Thanks,
Nir.
Related Posts with runiform function and r(N) scalar
Identifying variable that contains rowmax valueI am trying to identify the variable that equals the rowmax variable, but am running into issues. I…
How to convert the reg command to reghdfe code in controlling three dimensions?How to convert this code controlling for three ways fixed effect to reghdfe code? Code: reg y x i.…
How to Getting Rid of The Factorial Variables after Deleting Multicolinear Variables Using "_rmcoll"I have a set of variables X1, X2, X3, X4, X5. Among them, X5 is colinear with X3. So I use the comma…
Importing and manipulating super large datasetsHi everyone, I was handling with a very large confidential data. Specifically, I run the Stata prog…
Estimation of ATT for a naive regression estimatorHello, I want to estimate an average treatment effect on the treated (ATT) for a naive regression wi…
Subscribe to:
Post Comments (Atom)
0 Response to runiform function and r(N) scalar
Post a Comment