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
Problem with time series: repeated time values within panelHi, I want to create a time series variable, but when I enter the commend tsset date, I receive the …
2x3 categorical interactionHi Listers, I want to make sure I am correctly interpreting my 2*3 interaction following a logistic…
Create list of variables w/ different redaction patterns & dropping specific redacted variables based on other non-redacted varsHello, disclaimer: dataset contains PHI therefore I have recreated a replica with substituted varia…
granger causality_second timeHello everyone I tried many times to run granger causality test but i got HTML Code: repeated time…
extract data from excel in loopDear stata experts, I would like to extract data from an excel spreadsheet regularly, e.g. cell (B4…
Subscribe to:
Post Comments (Atom)
0 Response to Collapse by partial group
Post a Comment