Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: RE: could be simple but I don't get the error message on range
From
"Jesper Lindhardsen" <[email protected]>
To
<[email protected]>
Subject
st: RE: could be simple but I don't get the error message on range
Date
Wed, 15 Feb 2012 08:37:56 +0100
Hi there,
This works for me:
sysuse auto
probit foreign mpg
mfx
#delimit ;
twoway function y =_b[mpg]*x+(_b[_cons]), xtitle(Years
of Schooling) ytitle(Marginal effect) range(mpg)
;
HTH, Jesper
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Nirina F
Sent: 15 February 2012 06:22
To: [email protected]
Subject: st: could be simple but I don't get the error message on range
Hello,
could you please rescue me on how to run these two graphs as I get error
messages all the time on range or parentheses. May be my stata was not
up to date?
many thanks,
Nirina
sysuse auto
probit foreign mpg
mfx
#delimit ;
twoway (function y =_b[mpg]*x+(_b[_cons])), range(mpg) xtitle(Years
of Schooling) ytitle(Marginal effect))
;
probit foreign mpg
mfx
sum price
local price = r(mean)
#delimit ;
twoway (function y
=_b[mpg]*normden(_b[i_age]*`price'_b[mpg]*x+_b[_cons]), range(mpg)
ytitle(Marginal effect) xtitle(years of schooling)) ;
*
* 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/
*
* 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/