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]

Re: st: mlogit and unit of change


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: mlogit and unit of change
Date   Mon, 12 Jul 2010 07:48:22 +0000 (GMT)

--- On Mon, 12/7/10, jessica.leah@utoronto.ca wrote:
> I am having difficulty finding syntax that will allow me to
> change the unit of change in x in the mlogit command. 

The easiest way to do that in Stata is to create a new veriable
tha that has the desired unit (method 1 in the example below).
Alternatively, you can use -lincom- to change unit afterwards
(method 2). Both methods allow you to easily recover the 
relative risk ratios.

*------------------ begin example ---------------
sysuse auto, clear
recode rep78 1/2 = 3

// method 1
gen weight2 = weight * .0045359237 
label var weight2 "weight (100 kg)"
mlogit rep78 weight2

// method 2
mlogit rep78 weight
lincom [#1]_b[weight]/.0045359237 
lincom [#2]_b[weight]/.0045359237

// if you prefer relative risk ratios / odds ratios
mlogit rep78 weight2, rrr
mlogit rep78 weight
lincom [#1]_b[weight]/.0045359237 , eform
lincom [#2]_b[weight]/.0045359237 , eform
*------------------ end example ---------------------
(For more on examples I sent to the Statalist see: 
http://www.maartenbuis.nl/example_faq )

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


      

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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   |   Site index