[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Simpler question: Returning a local macro within -simulate- command
From
Rachel <[email protected]>
To
[email protected]
Subject
st: Simpler question: Returning a local macro within -simulate- command
Date
Fri, 30 May 2008 09:13:07 -0400
Here's a simpler question: How can I have simulate *return* just the
initial value of c(seed)? Nick suggested the following code, which
takes c(seed) as an argument, but doesn't return it. Thanks in
advance for your help.
capture program drop TrialProgram
program define TrialProgram
clear
set obs 9000
capture drop x y
drawnorm x y
regress y x
end
*
* 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 |