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
Ascol command: r(3301) errorDear all, After trying multiple ways to work around an error issued by Stata after running the asco…
Collinearity-removed variables, other statistics not showing up.I'm currently running a lot (77) of different time-series regressions, each of which use different f…
Different Regression Results after each rerunHello everbody, excited to make my very first post. I am currently writing my Thesis with Stata. I a…
Running IV with ordinal instrument on binary endogenous independent variable and continuous outcome variableDear Stata Community, I would like to ask if anyone here could offer some advice on the estimation …
Finding relevant datesHi This is my first attempt at using dataex Code: * Example generated by -dataex-. For more info,…
Subscribe to:
Post Comments (Atom)
0 Response to how to calculate dependency ratio in STATA
Post a Comment