From | Kit Baum <[email protected]> |
To | [email protected] |
Subject | st: Re: regression simulation |
Date | Tue, 21 Dec 2004 07:10:56 -0500 |
One way to make Kit's code more elegant is to use the -simulation- command: program define sim, rclass drop _all set obs 100 drawnorm y x reg y x return scalar se = _se[x] return scalar t = _b[x]/_se[x] end simulate "sim" se=r(se) t=r(t), dots reps(1000) desc sum
* * 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 |