Statalist The Stata Listserver


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

st: error when try to test if ratio=number after svy: ratio


From   "Brent Fulton" <[email protected]>
To   <[email protected]>
Subject   st: error when try to test if ratio=number after svy: ratio
Date   Tue, 26 Jun 2007 16:27:11 -0700

Hi,

I am using Stata 9.2 and the -test- command after -svy: ratio- is giving me
an error saying the ratio parameter can't be found when I try to test
whether the ratio equals a number e.g., 1. Does anyone know why? The code is
below. (The same error occurs when I don't use the -svy- option.)

Thanks,
Brent


svyset idnumr [pweight=weight_i], strata(state)
svy: ratio var1/var2            /* creates the parameter estimate named
"_ratio_1" */
test _ratio_1         /* works fine, uses adjusted Wald to test if _ratio_1
equals zero */

test _ratio_1=1  /* error: _ratio_1 not found */



______________________________________________________
Brent D. Fulton, PhD
Health Services Researcher
Petris Center, School of Public Health, UC Berkeley
Phone: 510-643-4102 
Fax: 510-643-4281
Email: [email protected]
www.petris.org
 

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index