Hi Maarten, thanks for the clarification. Looks like it worked but need to
look more closely. I'll let you know if any doubts. Thanks. Puneet
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Maarten Buis
Sent: Wednesday, June 07, 2006 3:41 PM
To: [email protected]
Subject: st: RE: RE: RE: Modeling costs using GLM estimation.
--- 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/
------------------------------------------------------------------------------
Notice: This e-mail message, together with any attachments, contains information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New Jersey, USA 08889), and/or its affiliates (which may be known outside the United States as Merck Frosst, Merck Sharp & Dohme or MSD and in Japan, as Banyu) that may be confidential, proprietary copyrighted and/or legally privileged. It is intended solely for the use of the individual or entity named on this message. If you are not the intended recipient, and have received this message in error, please notify us immediately by reply e-mail and then delete it from your system.
------------------------------------------------------------------------------
*
* 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/