[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Test for trend in surveys

From   Philip Ryan <>
Subject   Re: st: Test for trend in surveys
Date   Mon, 29 Sep 2008 20:57:59 +0930

For a 2 x k table [with a k-category "exposure" variable] just set up a logistic
dose-response model:

svyset <whatever>
svy: logistic <binary outcome var>  <exposure var>

and check the coefficient of <exposure var>, along with its confidence interval
and P-value.

If you prefer a risk metric rather than odds, then use svy: glm..... with
appropriate link and error specifications.


Quoting Ángel Rodríguez Laso <>:

> Dear Statalisters,
> Is there a way to carry out a test for trend in a two-way table in
> survey analysis in Stata?
> Many thanks.
> Angel Rodriguez Laso
> *
> *   For searches and help try:
> *
> *
> *

Philip Ryan
Discipline of Public Health

Director, Data Management and Analysis Centre
Associate Dean (IT)
Faculty of Health Sciences

University of Adelaide
5005 South Australia
CRICOS Provider Number 00123M
This email message is intended only for the addressee(s)
and contains information that may be confidential and/or
copyright.  If you are not the intended recipient please
notify the sender by reply email and immediately delete
this email. Use, disclosure or reproduction of this email
by anyone other than the intended recipient(s) is strictly
prohibited. No representation is made that this email or
any attachments are free of viruses. Virus scanning is
recommended and is the responsibility of the recipient.
*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index