Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: linktest after survey in stata9


From   Laurie Molina <[email protected]>
To   [email protected]
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 <[email protected]> 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 <[email protected]> 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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index