Hello community,
I'm trying to create a new variable "ER" (employment rate) from another variable LFACT (labor force activities) which has indicator values from 1 to 14. Values of 1 and 2 indicate "employed" and 3-14 indicate "unemployment" for various reasons.
The way I calculate the ER is: total frequencies of 1 and 2 appearing in LFACT divided by the total frequencies of 1 to 14 appearing in LFACT.
So, how to create a new variable that would list the total frequencies of only values 1 and 2 in LFACT? as well as a second new variable that lists the total frequencies of all values from 1 to 14... ?
Many thanks,
William
Related Posts with How to create a new variable that contains the total frequencies of only specific values of another variable?
Statistical power of small observationsHello- although that one of the variables in my regression forms only 1.7% of that observations (tot…
Re: svy, subpop ( ): tab a b, obs Pearson failed to calculate Chi-square statisticGreeting Stata Users, I am using svy, subpop ( ): tab a b, pearson to generate chi-square statistic…
DfbetaIm using OLS regression. To find dfbetas I cannot use defbeta command after a regression command tha…
How to compute RSS and TSS from xtivregI'm working on a project investigating the impact of childhood malnutrition on scholastic performanc…
How to deal with serial correlation?Hello dears, thank you to statalist community for this support. I need your help please. I am perf…
Subscribe to:
Post Comments (Atom)
0 Response to How to create a new variable that contains the total frequencies of only specific values of another variable?
Post a Comment