Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

a guess (Re: st: generate a tscs pseudo-population...)


From   Toyoto Iwata <[email protected]>
To   [email protected]
Subject   a guess (Re: st: generate a tscs pseudo-population...)
Date   Tue, 08 Jun 2004 08:54:42 +0900

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index