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" <>
To   <>
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? 

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. 


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

*   For searches and help try:

© Copyright 1996–2022 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index