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" <[email protected]>
To   <[email protected]>
Subject   RE: st: test for trend with svy commands?
Date   Thu, 21 Oct 2004 21:08:26 +0100

The zeroth lesson is how to find this out for 
yourself. The manual entry [R] summarize 
and on-line help for -summarize- certainly 
explain this. It is a bit trickier to find out 
what it does by trying it out, as it leaves 
no output in the Results window, but only 
a set of results that may be seen by typing -return 
list-. But that's explained in the sources
mentioned. 

Nick 
[email protected] 

Melissa D. A. Carlson
> 
> Thanks so much for this reply. Just a quick follow-up question:
> What does "sum year, mean" do?
> 
Stas Kolenikov
 
> 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index