Announcement

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

  • Creating Weights

    I am trying to create a weighted wage, using employment and wage. I tried the following command, but I got a "type mismatch error"

    gen weight_for_increase=p10_binned * emp if min_wage_increase == 1

    both p10_binned and emp are numeric variables. What would be the correct way to create this weight?

  • #2
    Perhaps min_wage_increase is not a numeric variable. I would run
    Code:
    codebook p10_binned emp min_wage_increase
    and carefully review the output to be certain all three are numeric rather than strings holding numbers.

    Comment


    • #3
      yes, that correct. It wasn't a numeric variable. Thank you!

      Comment

      Working...
      X