Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: drawnorm for discrete variables

From   Austin Nichols <>
Subject   Re: st: drawnorm for discrete variables
Date   Fri, 30 Apr 2010 13:53:41 -0400

Tyler Frazier <> :
If you have a survey, you should have survey weights.  Why not simply
inflate by the survey weights, or some appropriate multiple of them,
to get the right number of cases, and then -bsample- to get a
synthetic population?  The correlations will be inherited from the
data.  Do you mean to preserve household structure (if your survey
includes multiple people from the same household) or take account of
sample design (e.g. clustering)?

webuse nhanes2, clear
keep houssiz-finalwgt
ta sizplace heartatk [aw=finalwgt], row
g w=round(finalwgt/500)
expand w
ta sizplace heartatk, row
ta sizplace heartatk, row

On Fri, Apr 30, 2010 at 10:44 AM, Tyler Frazier <> wrote:
> thank you for all your responses and suggestions, now I need to look
> into these possibilities
> best regards,
> Ty
> On Fri, Apr 30, 2010 at 4:30 PM, Maarten buis <> wrote:
>> --- On Fri, 30/4/10, Tyler Frazier wrote:
>>> The data will be used in an urban simulation which incorporates a
>>> number of location choice models, regression, and other simple models.
>>>  For now I would like to establish a method for synthetically
>>> generating the data, for use in the larger spatial, framework.  At
>>> this point, I am seeking a plausible solution for running the urban
>>> simulation in order to observe its behavior.
>> I would build such a simulation sequentially, so start by assigning
>> "people" charactericstics that are (largely) exogenous like tribe
>> and sex, and than assign them other characteristics that depend on
>> these, than assign further characteristics based on the prevous ones,
>> etc. For example:

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index