From ede331d7a124506493494c445ddd40ce2ff7bfeb Mon Sep 17 00:00:00 2001 From: Mario G <63501500+gronert-m@users.noreply.github.com> Date: Wed, 20 Nov 2024 17:16:38 -0500 Subject: [PATCH] Update gldpanel_check_source.ado Correct from bys `hhid' `pid': egen diff_sex x= sd(`sex') to bys `hhid' `pid': egen diff_sex = sd(`sex') --- .../GLD Panels/ado/gldpanel_check_source.ado | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Support/Z - GLD Ecosystem Tools/GLD Panels/ado/gldpanel_check_source.ado b/Support/Z - GLD Ecosystem Tools/GLD Panels/ado/gldpanel_check_source.ado index 3eaf96dd1..d252cac62 100644 --- a/Support/Z - GLD Ecosystem Tools/GLD Panels/ado/gldpanel_check_source.ado +++ b/Support/Z - GLD Ecosystem Tools/GLD Panels/ado/gldpanel_check_source.ado @@ -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)