Announcement

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

  • Coefplot for a specific variable

    Hello, I have the following regressions:

    (1) reg up nac_empr cor sexo i.ano i.cnae i.porte i.classe if sexo==0 & cor==0 & nac_empr==0
    estimates store HoBrNac

    (2) reg up nac_empr cor sexo i.ano i.cnae i.porte i.classe if sexo==0 & cor==0 & nac_empr==1
    estimates store HoBrEstr

    "i.porte: It ranges from 1 to 4, with each year being a binary variable, for example: 1 when it is of size 1 and 0 when it's not, then 1 when it is of size 2 and 0 when it's not, then 1 when it is of size 3 and 0 when it's not, and finally, 1 when it is of size 4 and 0 when it's not."

    I want to plot a coefplot graph for HoBrNac but only for the variable i.porte. How can I do that?
    Last edited by Ronie Santana; 31 Oct 2023, 12:46.

  • #2
    Code:
    sysuse auto, clear
    reg price mpg displacement foreign i.rep78
    coefplot , keep(*rep78)

    Comment

    Working...
    X