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   Laurie Molina <molinalaurie@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: linktest after survey in stata9
Date   Sun, 10 Oct 2010 18:16:39 -0500

Thank you very much,
And just for future public utility, it does:
In stata 9, the following command takes in to account the survey
design when reporting the coefficients and p-values in the auxiliar
regresion for the linktest:

****
svy: poisson depvar indepvar
linktest

****


On Fri, Oct 8, 2010 at 1:37 PM, Steve Samuels <sjsamuels@gmail.com> wrote:
> 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/
>

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