Statalist


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

Re: st: re: problem with margeff


From   James Shaw <[email protected]>
To   [email protected]
Subject   Re: st: re: problem with margeff
Date   Thu, 9 Jul 2009 15:05:39 -0500

I think I have identified the problem.  Unlike the older version of
-margeff- (4/22/2005), -margeff8- (2/10/2006), and -mfx-, the newer
version of -margeff- (4/20/2008, v. 2.1.8) appears to require that
brackets be placed inside the parentheses when using the "at()"
option.  The following two lines of code appear to work and yield
identical results:

. margeff compute, at([], x3=20 )
. margeff compute, at([mean], x3=20 )

The inclusion of the comma after the brackets has no bearing on the
command's functioning.

--
Jim



On Thu, Jul 9, 2009 at 11:32 AM, Kit Baum<[email protected]> wrote:
> <>
>
> logit foreign price trunk mpg weight
> margeff compute, at(mean mpg=20 trunk=10)
> works fine.  Admittedly the help file suggests you can omit the word
> 'mean', but as that is the stated default, it doesn't hurt to use it.
>
> which margeff
>
> *! Obtain partial effects after estimation
> *! Version 2.1.8  (20 April 2008)    (Revision of Stata Journal
> submission)
> *! Author:        Tamas Bartus       (Corvinus University, Budapest)
>
>
> Kit Baum   |   Boston College Economics & DIW Berlin   |   http://ideas.repec.org/e/pba1.html
>                               An Introduction to Stata Programming
> |   http://www.stata-press.com/books/isp.html
>    An Introduction to Modern Econometrics Using Stata  |   http://www.stata-press.com/books/imeus.html
>
>
>
>
> *
> *   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/
>



-- 
James W. Shaw, Ph.D., Pharm.D., M.P.H.
Assistant Professor
Department of Pharmacy Administration
College of Pharmacy
University of Illinois at Chicago
833 South Wood Street, M/C 871, Room 252
Chicago, IL 60612
Tel.: 312-355-5666
Fax: 312-996-0868
Mobile Tel.: 215-852-3045

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index