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

st: RE: how to create a HLM dataset

From   "Nick Cox" <>
To   <>
Subject   st: RE: how to create a HLM dataset
Date   Wed, 14 Sep 2005 10:35:57 +0100

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. 

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

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