Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65160

How do I determine the estimated difference, in my DV, from saved random cohort effects?​

$
0
0
Using Stata 14.1 in Window 10.

I am doing a CCREM in Stata. This is the code:

Code:
mixed tolind c.age##c.age Inspired Fables female Liberal Moderate white ceduc marry kids south urban rural suburban crelcom mainline blackprot catholic nofaith [fweight=wtssall]|| _all:R.cohort5 || year:
After this, I am saving the random effects of cohort5 and year using this code:

Code:
predict c5reall yearreall, reffects
However, I want to create a graph where I chart the estimated differences of these random effects on my DV (tolind, which runs from 0 to 15). Thus, one chart would graph the random cohort effects of the estimated differences in my DV by cohort and the other chart would graph the random period effects of the estimated differences in my DV by year.

I do not know how to interpret or manipulate the results of the c5reall and yeareall random effects variables so that they make sense in terms of graphing estimated differences in my DV (tolind), which runs from 0 to 15.

For example: this is the output from
Code:
tabulate c5reall
HTML Code:
BLUP r.e. |
  for _all: |
  R.cohort5 |      Freq.     Percent        Cum.
------------+-----------------------------------
  -.5852549 |      1,004        2.46        2.46
  -.5204305 |        655        1.60        4.06
  -.4261875 |      1,765        4.32        8.37
  -.3709875 |        724        1.77       10.15
  -.3438976 |      1,548        3.79       13.93
  -.2439106 |      1,471        3.60       17.53
  -.1473774 |      1,892        4.63       22.16
  -.1162268 |      1,181        2.89       25.04
  -.0620598 |      2,212        5.41       30.45
   .0386802 |      2,218        5.42       35.88
   .0846847 |      4,365       10.68       46.56
   .2662306 |      2,796        6.84       53.39
   .2839063 |      3,626        8.87       62.26
   .3863582 |      2,855        6.98       69.24
   .5371156 |      4,683       11.45       80.70
   .6077166 |      3,717        9.09       89.79
   .6116406 |      4,175       10.21      100.00
------------+-----------------------------------
      Total |     40,887      100.00
This is an example of what I want my chart to look like.
Array


Honestly, I'm not sure if I'm saving the right information (using the predict command) or if I should be saving some other information. Any guidance is appreciated.

Thanks,
Marie

Viewing all articles
Browse latest Browse all 65160

Trending Articles