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
Dfl (1996)Dear STATA users, I am trying to understand the computational aspect of DFL (1996) counterfactual d…
OLOGIT Odds Regression doesn't include all the values for variable.Hello all, I attach screenshots below of two OLS regressions. The first one worked with no issues. …
Recoding/Generating variables with conditionsHello! I want to recode my education variables which has values ranging from 1-21 referring to diffe…
replace missing values with values from another group / the mean of two groups↵ Dear, I am trying write a loop or program : - for var1 : replace the missing value (2012) by the…
Problems with running fuzzy RDDear stata users: I have two questions related to running fuzzy rd in stata and hope someone can hel…
Subscribe to:
Post Comments (Atom)
0 Response to Making loops to create 2 groups of variables
Post a Comment