Statalist The Stata Listserver


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

Re: st: desmat: and svy: together?


From   Richard Williams <Richard.A.Williams.5@ND.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: desmat: and svy: together?
Date   Tue, 12 Sep 2006 18:26:36 -0500

At 04:15 PM 9/12/2006, Ryan Wells wrote:
I would like to use desmat: as a prefix so I can have
contrasts on categorical variables, but also want to
use the svy: prefix with a logit I'm running, because
I need to account for complex survey design.  when I
try to use both prefixes at once (in either order) I
get an error.  can I use two prefixes at once?  if
not, is this possible some other way?
I just tried it with desmat first, and it seemed to work ok:

. webuse nhanes2f, clear

. desmat: svy: logit black female highlead female*highlead

I used the version of desmat from SSC, as it seems to be in several places.

You might show your exact commands, as it might be some combo of options that causes the problem.

If you don't need the new svy features of Stata 9, you might also try the old svylogit command, e.g.

desmat: svylogit black female highlead female*highlead

If really desperate, you could probably do it with my oglm program using the undocumented svy option:

desmat: oglm black female highlead female*highlead, svy

-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
FAX: (574)288-4373
HOME: (574)289-5227
EMAIL: Richard.A.Williams.5@ND.Edu
WWW (personal): http://www.nd.edu/~rwilliam
WWW (department): http://www.nd.edu/~soc
*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index