Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Regression with multiple age groups


From   Shirley Sy <shirleysy@hotmail.co.uk>
To   <statalist@hsphsun2.harvard.edu>
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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index