Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Display Nestreg graphically

    Hey,

    i have a question about my output for my nestreg command. i would like to make a graph from this table but i need to save the results first. I want to transfer the R2 value for each block into a graph.
    How do I save the results for the respective block in a variable so that I can create a graphic from it later?
    or is there a simpler way to create a graph from the results?




    Block Residual Change
    Block F df df Pr > F R2 in R2

    1 281.29 1 5764 0.0000 0.0486
    2 12.76 2 5764 0.0000 0.0528 0.0043
    3 35.70 4 5764 0.0000 0.0753 0.0225
    4 13.59 4 5764 0.0000 0.0822 0.0069
    5 8.90 1 5764 0.0029 0.0835 0.0013
    6 3.74 6 5764 0.0010 0.0869 0.0034
    7 3.95 1 5764 0.0469 0.0875 0.0006
    8 23.80 1 5764 0.0000 0.0903 0.0029
    9 37.73 1 5764 0.0000 0.0964 0.0061
    10 0.23 1 5764 0.6345 0.0964 0.0000
    11 29.25 1 5764 0.0000 0.1006 0.0042
    12 12.41 1 5764 0.0004 0.1024 0.0018
    13 79.35 1 5764 0.0000 0.1138 0.0114
    14 0.20 1 5764 0.6537 0.1138 0.0000


    .
    Last edited by Julian Ruf; 17 Apr 2024, 07:29.

  • #2
    Code:
    webuse census4, clear
    nestreg: regress brate (medage) (c.medage#c.medage) (i.region)
    mat res = r(wald)
    clear
    svmat res, names(col)
    gen block=_n
    tw connected R2 block, xlab(1/3) xsc(r(0.5/3.5)) msy(Oh)
    Click image for larger version

Name:	Graph.png
Views:	1
Size:	31.3 KB
ID:	1750321

    Last edited by Andrew Musau; 17 Apr 2024, 09:13.

    Comment


    • #3
      thanks that helped me, one question I could also graph the Adjusted R2. As it provides a better scale in an LPM.

      Comment

      Working...
      X