Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: mlogit and unit of change


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: mlogit and unit of change
Date   Mon, 12 Jul 2010 07:48:22 +0000 (GMT)

--- On Mon, 12/7/10, [email protected] 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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index