Yesterday, I enjoyed the instruction for creating
sample data posted by Bill, as usual. But there might be a blank
in the latter portion. This should have been a test for us,
primary graders. So I tried to fill it.
> . gen x2 = .
> . replace x2 = 1 in 1
> . replace x2 =
> . gen x2 = 4 + .2*x2[_n-1] + 2*invnorm(uniform())
.replace x2 = 4 + .2*x2[_n-1] + 2*invnorm(uniform()) if x2 ==.
Is this right?
Toyoto
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/