Announcement

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

  • Predicitve Margins and Marginsplots dor continuous variable

    Hello together,

    I am completely new to margins and marginsplots an have the following question:

    I have this regression:

    Code:
    reghdfe c.Change_NII c.GGDEBT##c.Total_domestic_exposure c.GGDEBT_lag1 c.Long_term_rate c.Unemployment c.log_totalassets c.log_ownfunds c.CET_Actual c.NII_Actual, absorb(i.ST_Year i.Country_Code2)
    and I need the predicitve margins and the following margins plot where GGDEBT has to be held constant at certain values (30, 60, 80, 100, 120)
    with Predicted Change_NII on the y-axis and Total_domestic_exposure on the x-axis.


    Click image for larger version

Name:	Marginsplot.png
Views:	1
Size:	168.1 KB
ID:	1698864




    Thanks in advance and kind regards,
    Natalie
    Last edited by Natalie Peltzer; 26 Jan 2023, 05:35.

  • #2
    Code:
    use auto, clear
    reg price c.mpg##c.headroom weight
    margins, at(mpg = (10(10)40) headroom=(2(1)5))
    marginsplot

    Comment

    Working...
    X