Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: svrest & svresttest commands


From   "Chattopadhyay, Arpita" <achat@medsfgh.ucsf.edu>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: svrest & svresttest commands
Date   Mon, 14 Jun 2004 15:47:27 -0700

Hi everyone,
I am using the svrmean command to calculate the mean of variable by race and
gender.  I then want to see if difference in mean between males and females
among whites is significantly different from the gender difference in other
races.  I gather that fro this I need to use the svrest and svresttest
commands.  However, I do not know how to access the mean values after the
estimation command and do the test.  This is what I am doing (0 and 1 stand
for males and females respectively):
. svrest "svrmean usc, by (smallrace pcpreq)"
"[white]0-[white]1-[latino]0+[latino]1"
error when command executed on original dataset
invalid syntax
r(101);
Please help.
Thanks.
Arpita


********************************************************
Arpita Chattopadhyay, Ph.D.
Senior Statistician
Primary Care Research Center
University of California at San Francisco
1001 Potrero Avenue, Building 90, Ward 95
San Francisco, CA 94110
Ph: 415 206 6188
********************************************************



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