trouble fitting cross-classified model
Posted: Tue Sep 18, 2012 7:43 am
Hi,
I have data with level 1 as individuals, clustered within three different residential areas (at three different ages). There are approx 4000 people, and ~1000 areas per timepoint. I am trying to fit a cross-classified model, starting with only including two of the areas.
I have:
matrix b = (1.,0.33,0.33,0.5)
runmlwin newbalance cons, level3(cons: s1-s1001, diagonal) level2(area2: cons) level1(id: cons) constraints(1/1000) mcmc(cc) initsb(b)
where s1-s1001 are the individual variables for each category of area 1 (calculated using the example from the runmlwin documentation) and the constraints are also calculated using that example:
tabu area1, gen(s)
forvalues i = 1(1)1000 {
constraint define `i' [RP3]var(s1) = [RP3]var(s`i'+1)
}
When I run the model, it just says "too many macros".
Any help would be much appreciated (and I haven't even tried the three-way cross-classification yet!).
Thanks
Kate
I have data with level 1 as individuals, clustered within three different residential areas (at three different ages). There are approx 4000 people, and ~1000 areas per timepoint. I am trying to fit a cross-classified model, starting with only including two of the areas.
I have:
matrix b = (1.,0.33,0.33,0.5)
runmlwin newbalance cons, level3(cons: s1-s1001, diagonal) level2(area2: cons) level1(id: cons) constraints(1/1000) mcmc(cc) initsb(b)
where s1-s1001 are the individual variables for each category of area 1 (calculated using the example from the runmlwin documentation) and the constraints are also calculated using that example:
tabu area1, gen(s)
forvalues i = 1(1)1000 {
constraint define `i' [RP3]var(s1) = [RP3]var(s`i'+1)
}
When I run the model, it just says "too many macros".
Any help would be much appreciated (and I haven't even tried the three-way cross-classification yet!).
Thanks
Kate