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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: linktest after survey in stata9


From   Steve Samuels <sjsamuels@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: linktest after survey in stata9
Date   Fri, 8 Oct 2010 14:37:51 -0400

In Stata 11, the answer is "Yes".  In Stata 9, you can check for yourself:

**************************CODE BEGINS**************************
sysuse auto,clear
gen psu= mod(_n, 10)
svyset psu [pweight=trunk]

svy: poisson rep78 weight
linktest

svy: poisson rep78 weight
predict xb, xb
gen xb2 = xb*xb
svy: poisson rep78 xb xb2   //significance of xb2 is the linktest
***************************CODE ENDS***************************




On Fri, Oct 8, 2010 at 1:01 PM, Laurie Molina <molinalaurie@gmail.com> wrote:
> Hi all,
> Does the fallowing linktest takes in to account the survey design in Stata9:
>
> ******
> svy: poisson depvar covariates
> linktest
> ******
>
> Thank you in advance!
> LM
> *
> *   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   |   Site index