Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: RE: Modeling costs using GLM estimation.


From   "Maarten Buis" <M.Buis@fsw.vu.nl>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: RE: Modeling costs using GLM estimation.
Date   Wed, 7 Jun 2006 21:41:13 +0200

--- Singhal, Puneet K. asked:
> You mean I need to convert my left hand side variable (costs) in log dollars
> first before running the -glm- model? 

Puneet:
You stated that: "My understanding is that the coefficients on the right hand 
side variables will be in logs." -glm- will model the log of costs as a linear 
function of var1, var2, and var3. All this is done by -glm-, you don't need to 
do anything. -mfx- will automatically show the effect of the explanatory 
variables on costs in dollars, and it will automatically detect dummy variables 
and show the discrete change. So literally all you need to do is issue your 
-glm- command on the untransformed cost variable and than type -mfx-. You can 
copy the example code I sent in my previous post in do file editor and run it 
to see what it does. 

HTH,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting adress:
Buitenveldertselaan 3 (Metropolitan), room Z214 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------


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