Bookmark and Share

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]

Re: st: Tobit graphics


From   "Ro'i Zultan" <[email protected]>
To   [email protected]
Subject   Re: st: Tobit graphics
Date   Thu, 27 Dec 2012 12:41:18 +0200

Hi Nikos,

I think the following should work for you:
tobit x y, ll(0)
margins, at(y=(0(10)100))
marginsplot, recast(line) recastci(rline) addplot(scatter x y)

With the margins parameters adjusted for your data.

Cheers,
Ro'i

2012/12/26 Kakouros, Nikolaos <[email protected]>
>
> Dear all,
>
> I have a set of data and using a twoway scatter and lfitci to show
> graphically along with the least-squares regression line and confidence
> intervals.
> Another set of data, however, is heavily censored with the dependent
> variable hitting a floor at 0 (and about a third of values actually being at
> zero).
> I noted the recent discussion on Tobit, chaired by Maarten Buis.
>
> I used tobit x y, ll(0)  for the regression but not sure how to recreate
> the lfitci output (regression line and confidence intervals) using the tobit
> regression info to produce the scatter graphic.
> Any help would be appreciated.
> With seasonal greetings,
>
> Nikos
>
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index