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
Windows 10 window title bar - how to show filename firstHi there Stata/IC version 16.1 on Windows 10 Is there a way to swap the information displayed on t…
Postfile only posts results of first iteration of the loopDear statalist, I have a big file that overwhelms my memory when I try to run my script. Therefore,…
How to Conduct the Pre and Post Analysis?Dear all, I have panel data from 2015 to 2019, i want to check pre period 2015 and 2016 descriptive …
Meta-analysis Ipdmetan (ssc) versus meta forestplotHi, I am doing meta-analysis for individual patient data. I get different overall results when I us…
Averaging the treatment effects of several regressions based on synthetic controlsHi, As far as I understand, the synth (synthetic control) only can have one unit under treatment ag…
Subscribe to:
Post Comments (Atom)
0 Response to Making loops to create 2 groups of variables
Post a Comment