Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: Regression with multiple age groups
From
Shirley Sy <[email protected]>
To
<[email protected]>
Subject
st: Regression with multiple age groups
Date
Wed, 25 Apr 2012 05:36:06 +0100
Dear Statalisters,
I am a complete beginner at Stata so my question is very basic but I am having trouble finding an answer on the web. I am doing a time series regression project forecasting divorce rates. My data spans 20 years and for both husband and wife the 'age at divorce' variable is split into groups i.e it looks something like this:
Year under 20 20 to 29 30 to 39 40 to 49 50 to 59 60plus not stated1985 458 1154 78 52 3 2 3
1986 221 956 50 59 9 5 0
How would I run a regression with the total numbers in each age group? Would I use dummy variables? I understand how I would do it if I had individual ages but since this is a time series model and I have the total number in each age group, I am finding it slightly more complicated.
ThanksShirley
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/