Announcement

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

  • I need help with marginsplot

    Hi. I want to use marginsplot after FRM regression. I don't want to see all variables, but only one "meritocracy" which is additive index. Meritocracy variable take values from 0 to 5. Also, I want to see other dummies variables. If I calculate margins with "margins, dydx(*)", I have this problem:
    -marginsplot, xdimension(meritocracy incent_red per_laureati exporter)
    meritocracy not a dimension in margins results
    r(322);

    More, if I calculate margins only for "meritocracy", then I have this problem:
    -margins meritocracy, dydx(*)
    factor 'meritocracy' not found in list of covariates
    r(322);


    How can I resolve?
    Thank you.

  • #2
    Vincenzo:
    if -meritocracy- is a categorical variable, what if you type:
    Code:
    margins i.meritocracy, dydx(*)
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      and if -meritocracy- is not a categorical variable?

      Comment


      • #4
        please show, using CODE blocks (read the FAQ for more): (1) your estimation command and (2) your desired margins command

        Comment


        • #5
          Vincenzo:
          -margins- was basically conceived for categorical variables.
          See the Example #6, -margins- entry, Stata .pdf manual for continuous variales (option -at-).
          Kind regards,
          Carlo
          (Stata 19.0)

          Comment

          Working...
          X