I have a big dataset of county level demographics
"County Statename Year Agegroup"
where agegroup is broken up into 4 year intverals (0-4, 4-9, 10-14 etc)
I am trying to collapse the agegroup to have it in 9 year intervals (0-9, 10-19 etc...)
I tried collapse (sum) if AGEGRP = 1 2 but am getting the following error "invalid "1"
Any suggestions?
Related Posts with Collapse by partial group
Problems converting string variable to date/time formatHi, I have a date/time variable that is a string and looks as follows: hh.mm.ss DD.MM.YYYY. I'd lik…
Adjustments to Esttab Code to Suppress Superfluous Statistics and Display LabelsHello --- I'm hoping to get some assistance adjusting my esttab code (pasted at bottom) to make the …
Create new variable with sums of occurrencesHi Statalist Community It is my first post here and I hope it is not a question that is too trivial…
Is there a command for Black Scholes model for American options?I realise there is Code: bsopm for European Option, but I wonder, is there a command for American d…
Cox-regression:proportional hazard test by Schoenfeld residualsHi! I have performed cox-regression on a data set with both continuous and categorical variables. In…
Subscribe to:
Post Comments (Atom)
0 Response to Collapse by partial group
Post a Comment