Announcement

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

  • factor variables may not contain noninteger values

    Hi,

    I am trying to run the following regression:
    reg logchildwage logheadwage POOR age NPERSONS URBAN2011 Hindus Male ForwardCaste Male##logheadwage.

    There is an interaction term between Male dummy and logheadwage but somehow I am getting an error stating that logheadwage: factor variables may not contain noninteger values. I somehow cannot understand how to solve this issue.

  • #2
    You need to declare logheadwage as continuous.

    Comment


    • #3
      And what Nick says is probably done like this

      Code:
      i.Male##c.logheadwage
      and read the help in

      Code:
       
       help fvvarlist

      Comment

      Working...
      X