Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: test for trend with svy commands?


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   RE: st: test for trend with svy commands?
Date   Thu, 21 Oct 2004 21:53:37 +0100

In general, sounds better. In this case, the idea
that you are taking seriously is that of a horizontal 
line on a scatter plot of response versus time, 
so it may not make too much difference how you model that. 

Nick 
n.j.cox@durham.ac.uk 

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of 
> Melissa D. A.
> Carlson
> Sent: 21 October 2004 21:30
> To: statalist@hsphsun2.harvard.edu
> Subject: RE: st: test for trend with svy commands?
> 
> 
> Also, wouldn't I do svylogit instead of svyreg since my 
> outcome is binary
> (0,1)?
> 
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu
> [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of 
> Stas Kolenikov
> Sent: Thursday, October 21, 2004 1:52 PM
> To: statalist@hsphsun2.harvard.edu
> Subject: Re: st: test for trend with svy commands?
> 
> 
> an easy thing to do is to create use the variable -year-, or better
> centered version of that,
> 
> sum year, mean
> g cyear = year - r(mean)
> 
> and put it into your regression
> 
> svyreg male cyear
> 

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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