Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: RE: how to create a HLM dataset


From   [email protected]
To   [email protected]
Subject   Re: st: RE: how to create a HLM dataset
Date   Wed, 14 Sep 2005 22:30:53 -0500

Nick, as for the first solution, can you give me more hint?
I do not know how to set up the structure identifiers.

Min


Quoting Nick Cox <[email protected]>:

> You can use -egen, seq()- to set up a
> structure of identifiers. Recall that this
> was an answer to one of your previous questions.
>
> Alternatively, if you want to mimic the structure
> of the USA, just borrow a real dataset with
> existing identifiers and then create your
> "random counts" according to whatever precise
> recipe you have in mind.
>
> Nick
> [email protected]
>
> [email protected]
>
> > I want to create a dataset which has a hierarchical linear structure.
> > for example, a structure of states, counties:
> >
> > 50 states in total. For each state, create counties with
> > random county counts.
> > Then for each county, create school districts with random counts.
> >
> > Does anyone have any idea how to do this by stata?
>
> *
> *   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/
>





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