Statalist The Stata Listserver


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

Re: st: RE: sampling problem


From   "Ben Jann" <[email protected]>
To   [email protected]
Subject   Re: st: RE: sampling problem
Date   Wed, 13 Jun 2007 16:33:48 +0200

... There is a problem with bsample in
that it cannot generate more observation than exist. So to take that
approach I would have to expand the dataset to ensure that I had enough
observations to fit in with my desired data set.
If -bsample- is not flexible enough for your purposes, then have a
look at -gsample-. Type:

. ssc install gsample
. ssc install moremata

With -gsample- you can sample 1000 out of 100, say, and the additional
observations are generated on the fly.

ben
*
*   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