Announcement

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

  • invalid operator error

    Hello everybody!

    Firstly, I should mention that I searched my question in the forum, but I couldn't find it. If it exists, sorry...
    I am doing an estimation with command following "ologit oio cins hh_reis sag_dur FE030 rel_inc var177 evli c.FK070##c.FK070,robust " FK070 is the continuous variable which shows age. I am trying to take into account effects of age and age^2 together. For my post estimation when I am trying to calculate marginal effects with command "mfx compute, predict (outcome(0)) " for all categories of my dependent variable, I encounter with an error "FK070#c: operator invalid" .How can I solve this problem?

    Thanks in advance for your help
    Best Regards

  • #2
    Ayyerus:
    as per -help mfx-:
    mfx has been superseded by margins. margins can do everything that mfx did and more. margins syntax differs from mfx; see margins. mfx continues to work but does not support factor variables and will often fail if you do not run your estimation command under version control, with the version set to less than 11. This help file remains to assist those
    who encounter an mfx command in old do-files and programs.
    Hence, use -margins- instead.
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment

    Working...
    X