Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Re: new sampling problem


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   Re: st: Re: new sampling problem
Date   Tue, 19 Jun 2007 11:45:48 -0400

..
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/



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