Skip to content

Commit

Permalink
Update gldpanel_check_source.ado
Browse files Browse the repository at this point in the history
Correct from

bys `hhid' `pid': egen diff_sex x= sd(`sex')

to 

bys `hhid' `pid': egen diff_sex = sd(`sex')
  • Loading branch information
gronert-m authored Nov 20, 2024
1 parent ebc549e commit ede331d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ gen diff_`age' = !(inlist(`age'_d, 0, 1))
bys `hhid' `pid': egen id_diff_`age' = max(diff_`age')

* Check if odd_diff is zero, but people have different characteristics
bys `hhid' `pid': egen diff_sex x= sd(`sex')
bys `hhid' `pid': egen diff_sex = sd(`sex')
replace diff_sex = (diff_sex > 0 & !missing(diff_sex))
bys `hhid' `pid': egen id_diff_sex = max(diff_sex)

Expand Down

0 comments on commit ede331d

Please sign in to comment.