Please let me know how to calculate dependency ration in STATA.. is the command below correct
bys ScheduleNo: egen Age_Working = count(B2Q1) if Age>=15 & Age<=64
bys ScheduleNo: egen count_Age_Working= max(Age_Working)
recode count_Age_Working (.=0)
bys ScheduleNo: egen Age_Dep = count(B2Q1) if Age<=14 | Age>=65
bys ScheduleNo: egen count_Age_Dep= max(Age_Dep)
recode count_Age_Dep(.=0)
gen DRatio = (count_Age_Dep/count_Age_Working)*100
recode DRatio(.=0)
Related Posts with how to calculate dependency ratio in STATA
Survey Weights in the Construction of Adult Literacy RatesHi, I have household survey data from a country with the following variables: district ID (distid)…
suest alternative for panel dataHi, I have a panel GDP data for over 200 countries for the years 1990 to 2018, which I am reducing …
Exporting/displaying boottest resultsHi everyone, I am running a difference in differences regression with Panel data on Stata version 1…
Appending models using coefplotI would like to merge multiple models into the same series (crude/adjusted/further adjusted models) …
Changing the line colour of panel data line plot according to an indicator variableDear forum, I have a set of longitudinal patient data representing patient id (subjid), time in stud…
Subscribe to:
Post Comments (Atom)
0 Response to how to calculate dependency ratio in STATA
Post a Comment