Announcement

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

  • Margins different between male and female?

    Clyde Schechter

    I ran this regression equation

    Code:
    reg income c.age i.educ i.sex c.workhours
    where wageincome is income ,

    educ is in 3 categories (1) not less of education (2) some level of education (3) degree and above

    and workhours is hours worked.

    sex = 0 and 1 for male, female respectively.

    predicted probabilities


    Code:
    margins, at( sex=(0) educ=(3) workhours=(20(20)80)) vsquish
    Code:
    margins, at( sex=(1) educ=(3) workhours=(20(20)80)) vsquish

    what will be the different between male and female?

    Last edited by Ayorinde Ogunyiola; 16 Mar 2019, 21:42.

  • #2
    Code:
    margins, dyx(sex) at(educ = (3) workhours = (20(20)80)) vsquish

    Comment


    • #3
      Thank you so much Clyde Schechter

      Comment


      • #4
        Will it be right to specify margins of an interaction of the regression equation

        Code:
        reg income c.age i.sex##i.edu i.sex##workhours
        Margins
        Code:
        margins, at( sex educ=(3) workhours=(20(20)80)) vsquish

        Clyde Schechter
        Last edited by Ayorinde Ogunyiola; 17 Mar 2019, 00:37.

        Comment


        • #5
          The -margins- command is not quite right.

          Code:
          margins sex, at(edu=(3) workhours = (20(20)80)) vsquish

          Comment


          • #6
            Thanks Clyde Schechter

            Comment

            Working...
            X