if Disp_BQ = . then IMGEN = .; /* IMYRS Variable Label in country Labels Scale: continuous .A born” “Native .N stated or inferred” “Not Reference variables AGE_R, J_Q04c1, J_Q04a SAS code */ IMYRS = AGE_R -J_Q04c1; if J_Q04a = 1 then IMYRS = .A; else if IMYRS > 65 then IMYRS = .N; else if J_Q04c1 = . or J_Q04c1 < 0 or IMYRS < 0 then IMYRS = .N; /* IMYRS_C Variable Label Years in country (categorised, 4 categories) Value Labels Scale: ordinal (categorical) 1 years” “0-5 2 years” “6-10 3 years” “11-15 4 than 15 years” “more .V skip” “Valid .D know” “Don't .R “Refused” .N stated or inferred” “Not Reference variables IMYRS
if Disp_BQ = . then IMGEN = .; /* IMYRS Variable Label in country Labels Scale: continuous .A “Native born” .N “Not stated or inferred” Reference variables AGE_R, J_Q04c1, J_Q04a SAS code */ IMYRS = AGE_R -J_Q04c1; if J_Q04a = 1 then IMYRS = .A; else if IMYRS > 65 then IMYRS = .N; else if J_Q04c1 = . or J_Q04c1 < 0 or IMYRS < 0 then IMYRS = .N; /* IMYRS_C Variable Label Years in country (categorised, 4 categories) Value Labels Scale: ordinal (categorical) 1 “0-5 years” 2 “6-10 years” 3 “11-15 years” 4 “more than 15 years” .V “Valid skip” .D “Don't know” .R “Refused” .N “Not stated or inferred” Reference variables IMYRS
codebook%20for%20DVs%203_16%20March%202015.docx