I'm trying to graph some age and cohort interactions from some results generated with mixed to illustrate cohort changes in attitudes over age:
Code:
mixed cdw i.cohortnew2##c.agecohortnew2 || pid: agecohortnew2, cov (un) reml variance
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(cdw cohortnew2 agecohortnew2) 3 1 4 1 1 0 3 1 2 3 1 4 1 1 0 6 1 -4 2 1 -5 5 1 -2 2 1 -5 4 1 0 1 1 3 4 1 -4 1 1 0 7 1 -1 2 1 -1 1 1 -1 2 1 -2 4 1 -3 3 1 -3 2 1 -4 1 1 -1 3 1 -1 3 1 0 4 1 1 1 1 0 1 1 2 2 1 0 2 1 -3 2 1 -3 1 1 -1 2 1 -5 3 1 -3 1 1 2 3 1 -3 3 1 4 1 1 -1 1 1 -5 2 1 -1 1 1 -1 5 1 0 4 1 -1 1 1 0 1 1 -2 1 1 -2 2 1 -3 7 1 -5 2 1 -2 4 1 3 7 1 -5 1 1 0 6 1 3 5 1 2 6 1 2 4 1 2 4 1 2 4 1 4 4 1 -5 1 1 -1 5 1 -5 2 1 -2 1 1 3 1 1 -4 3 1 -5 2 1 -4 1 1 0 3 1 -5 3 1 3 2 1 -3 1 1 0 1 1 -4 1 1 -1 1 1 3 1 1 -5 1 1 -1 1 1 0 7 1 0 1 1 -2 1 1 2 1 1 -3 1 1 4 5 1 -4 1 1 -5 6 1 -1 2 1 -3 3 1 -2 5 1 0 3 1 -4 3 1 -3 4 1 -3 3 1 1 3 1 -1 3 1 0 1 1 2 3 1 -4 2 1 -5 1 1 -4 4 1 0 2 1 -5 4 1 0 1 1 -4 end
Any help would be greatly appreciated
0 Response to Graphing interactions using mixed
Post a Comment