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 on April 23, and its replacement, 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 <>
Subject   Re: st: mlogit and unit of change
Date   Mon, 12 Jul 2010 07:48:22 +0000 (GMT)

--- On Mon, 12/7/10, 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: )

Hope this helps,

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


*   For searches and help try:

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