Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: simulate error
From
Scott Merryman <[email protected]>
To
[email protected]
Subject
Re: st: simulate error
Date
Tue, 11 Mar 2014 10:01:38 -0500
-mark- is already a program name. See -help mark-.
This works:
clear all
capture program drop mymark
program define mymark, rclass
sysuse auto,clear
sample 5 if fore == 0, count
sample 5 if fore == 1 , count
summarize price
return scalar mean = r(mean)
return scalar sd = r(sd)
end
simulate pipi=r(mean) pipi2=r(sd), reps(10): mymark
Scott
On Tue, Mar 11, 2014 at 9:51 AM, Mark Baerthel <[email protected]> wrote:
> Dear Nick,
>
> thank you. but that is not the Problem. I already realized that.
>
> I still get the error.
>
> MB
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/