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
Add a vertical line?Dear all, I generate a data set and estimate an interaction model as follows. Code: clear set seed …
Need some help on a loopHello dears all. I merged two datasets. The first dataset contained the listing of households' memb…
Unable to read .dta file through do file - works fine otherwiseHello! I am working on a do file alongside a colleague but its commands will not load successfully …
Import mulitple sas7bdat files into stata with a loop?Hello I have 524 sas files I would like to import as dta files, ex. bef201012.sas7bdat bef201112.s…
test for significant difference in number of children between 2 groupsHi there, I've been searching for a few hours on the internet but right now I can't see the wood fo…
Subscribe to:
Post Comments (Atom)
0 Response to Collapse by partial group
Post a Comment