| |
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Re: new sampling problem
..
You can easily automate this by building the local macro from whatever part of
your do or ado file creates the numbers. I just gave the example of creating it
as a list all at once, but obviously you can pass the list into this however you
want. You could even write a wrapper ado around samplepps that would take a
list of numbers and run samplepps with each of them. You may also be able to
move the calls to samplepps into whatever process creates these numbers. Also,
the advice about setting the random number seed by Steven Samuels elsewhere on
this thread should be followed.
Michael Blasnik
----- Original Message -----
From: "John allfish" <[email protected]>
To: <[email protected]>
Sent: Tuesday, June 19, 2007 11:38 AM
Subject: RE: st: Re: new sampling problem
The list of numbers will work, however I want the program to run without me
specifying the numbers. These come from another part of the work I am doing
and I want them to be called into samplepps automatically. I should have added
that I want to use samplepps to draw random samples of larger than existing N.
It was suggested that gsample but I am using version 8.0 and it would not
work.
Thanks,
John
*
* 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/