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/