Hello all,
I have data that is set out with columns divided into Sex; then Labour Force Status (8 categories), then Age in 5 year intervals (11 categories). So the age groups are in the columns next to each other, and the first half of all columns is male. I would like to create variables for male/female and each of the 8 LFS categories, each summed over the first 10 age categories. The rows are area codes.
I am struggling to code a couple of loops that will achieve this. Thanks for bearing with me, I know a data sample would be helpful here. I am also struggling to install dataex along these lines:
. ssc install dataex
checking dataex consistency and verifying not already installed...
installing into c:\ado\plus\...
could not rename c:\ado\plus\stata.trk to c:\ado\plus\backup.trk
r(699);
Thanks heaps
Related Posts with Making loops to create 2 groups of variables
Gini coefficientHello Excuse me, what is the meaning [aw = ] of the following statement? ineqdeco per_income [aw = …
Unable to automate importing files from the Department of Labor websiteThe zip file containing the csv file I need is under the following location https://www.askebsa.dol…
bootstrap for internal validation: how can we calculate the testing performance (the performance of bootstrapmodel in the original sample)?Dear statalist users, I used the following code in internal validation of our model, and get the ne…
Averaging for a subset of observationsHello all, I have dealing with a rather weird problem for the past week and I am hoping you can hel…
Analyzing Blinder-Oaxaca decompositionHello, I am fairly new to Stata but have to analyze the Blinder-Oaxaca decomposition. I have been r…
Subscribe to:
Post Comments (Atom)
0 Response to Making loops to create 2 groups of variables
Post a Comment