[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: how to create a HLM dataset
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: