Announcement

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

  • eclplot command

    Hello dear, Please I learn how to use eclplot command.
    From Stata help, I run the example:

    . sysuse auto,clear
    . parmby "xi:regress mpg i.foreign i.rep78", label norestore
    . sencode parm,gene(parmid)
    sencode mpg foreign rep78, gene(foreign rep78)
    . eclplot estimate min95 max95 parmid

    But I get error about 2nd line : "variable parm not found"

    I don't know how to fix the issue?

    Can we help me please?


    Thk you

  • #2
    I can get the first three lines to run (sysuse - sencode).

    The rest won't because parmby overwrites the data. mpg, etc... are gone.

    you have a frame option for parmby. That might be the best option.

    This works:

    Code:
    sysuse auto , clear
    parmby "xi:regress mpg i.foreign i.rep78", label norestore
    sencode parm,gene(parmid)
    eclplot estimate min95 max95 parmid
    which is close to:
    Code:
    xi:regress mpg i.foreign i.rep78
    coefplot

    Comment

    Working...
    X