Hi all,
I try to do some basic stata programming but still quite lost and would
appreciate any guidance. I have a dataset like N1 N2 N3 X1 X2 X3 for each
period of time T. N is the number who answer each choice and X are
macroeconomics data. What I try to do is generate new observation according
to each N (e.g. if N1=100 generate new 100 observation) that have the same X
value for each period of time T. I have looked at foreach, forval, if
command and the archive for previous questions but still could not move on
and would appreciate any guidance.
Thanks,
P.Chakkrit
Like Kit says, you may be able to get by using frequency
weights. Alternatively, something like