Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

Fw: st: How to change the base reference variable


From   saqlain raza <bhatti_sb@yahoo.com>
To   Stata <statalist@hsphsun2.harvard.edu>
Subject   Fw: st: How to change the base reference variable
Date   Tue, 27 Nov 2012 05:22:12 -0800 (PST)

If I understand well your question, you can use 


-reg FOOD_REC_YESNO WSTCHGE_WTANDVOL  C7_WSTCHRG_FREQ ......, base(0) OR base(1)- as per your requirement. 



Saqlain
PhD Researcher



________________________________
From: Ángel Rodríguez Laso <angelrlaso@gmail.com>
To: statalist@hsphsun2.harvard.edu 
Sent: Tuesday, November 27, 2012 1:42 PM
Subject: Re: st: How to change the base reference variable

Dear Sharon,

I'm not sure I understand your query.

Assuming C7_FLAT_FEE is coded now 0 'by weight' 1 'flat fee' , you
only have to recode 0=1 and 1=0 to make flat fee the reference
category (remember to change value labels).

Alternatively, you can try if this works:
char C7_FLAT_FEE [omit] 1


Best regards,

Angel Rodriguez-Laso


2012/11/27 Sharon Brody <brodysharon@yahoo.co.uk>:
> How do I change the "base" variable for the following when I want to compare the respondents that pay by weight against the ones that pay by flat fee. I want to use the "Flat Fee" as the base reference and compare the other values against it, so from what I understand, the Flat Fee will be 0 and the other variables relate to this one???
>
>
>                 
                                       |                       Robust
>
> FOOD_REC_YESNO                   |      Coef.       Std. Err.            z    P>|z|     [95% Conf. Interval]
> ---------------------------+----------------------------------------------------------------
> WSTCHGE_WTANDVOL |             .6269663   .0758675     8.26   0.000     .4782687    .7756639
>     C7_WSTCHRG_FREQ |             .3669699   .1222214     3.00   0.003     .1274202    .6065195
>      
C7_WSTCHRG_SIZE |             .6952631   .1009664     6.89   0.000     .4973725    .893153
> C7_WSTCHRG_NOCHRGE |        .2395512   .0674308     3.55   0.000     .1073892    .3717132
>                   C7_FLAT_FEE |            .1504759   .0565794     2.66   0.008     .0395823    .2613695
>              MARRIEDDUMMY |            .0867563   .0446619     1.94   0.052    -.0007795    .1742921
>                     A01_SEX |          -.0569886   .0406814    -1.40   0.161   
-.1367228    .0227455
>               A02_AGEGROUP |           .0586061   .0161849     3.62   0.000     .0268843     .090328
> A05_YEAR_POST_SCHOL|          .0048855   .0064896     0.75   0.452    -.0078338    .0176048
>
> *
> *   For searches and help try:
> *  http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*  http://www.stata.com/help.cgi?searchhttp://www.stata.com/support/faqs/resources/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/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index