Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Testing for Trend Linearity


From   "Kieran McCaul" <kamccaul@meddent.uwa.edu.au>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Testing for Trend Linearity
Date   Fri, 5 Sep 2008 09:53:29 +0800

I suppose if you want to find out if the coefficient of age is the same
in each age group, you could fit an interaction between age and ageg.

xi: xtpois injury i.ageg*age, i(id)

this would give you the coefficient with respect to age in age group 1
(lincom age), in age group 2 (lincom age + IageXage_2), and in age group
3 (lincom age + IageXage_3).

So you could visually assess the differences or use testparm IageX* to
tell you if the interaction terms were statistically significant.


______________________________________________
Kieran McCaul MPH PhD
WA Centre for Health & Ageing (M573)
University of Western Australia
Level 6, Ainslie House
48 Murray St
Perth 6000
Phone: (08) 9224-2140
Fax: (08) 9224 8009
email: kamccaul@meddent.uwa.edu.au
http://myprofile.cos.com/mccaul 
_______________________________________________
The fact that no one understands you doesn't make you an artist.

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of
jasonm@ucla.edu
Sent: Friday, 5 September 2008 9:08 AM
To: statalist@hsphsun2.harvard.edu
Subject: st: Testing for Trend Linearity

I ran (in stata 9)
xi: xtpois injury age, i(id)
xi: xtpois injury age i.ageg, i(id)
where "injury" is a binary variable, "age" is continuous and "ageg" is  
"age" as a categorical variable. All the p-values (age, _ Iageg_2, and  
_Iageg_3) were >0.05.
Does this imply the trend does not deviate from linearity (at the 0.05
level)?
If not, does anyone have a suggestion(s) for a trend test that tests  
for linearity?

*
*   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/



*
*   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   |   What's new   |   Site index