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]

AW: st: Smoothed Plot with Observation Specific CIs


From   "Martin Weiss" <[email protected]>
To   <[email protected]>
Subject   AW: st: Smoothed Plot with Observation Specific CIs
Date   Thu, 15 Jul 2010 13:48:02 +0200

<> 


*************
ssc d eclplot
*************

by Roger Newson may also be helpful for Wassim.


HTH
Martin


-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]] Im Auftrag von Wassim Tarraf
Gesendet: Donnerstag, 15. Juli 2010 13:41
An: [email protected]
Betreff: Re: st: Smoothed Plot with Observation Specific CIs

Thanks Maarten!

Maarten buis wrote:
> --- On Thu, 15/7/10, Wassim Tarraf wrote:
>   
>> I have a data set that includes point (probability)
>> estimates and their standard errors. Any recommendations on
>> the best way, in Stata, to smooth plot these point estimates
>> relative to a continuous X variable (say age) with CIs
>> (based on point specific SEs) about them?
>>     
>
> Something like:
>
> gen lb = pred - invnormal(0.975)*se
> gen ub = pred + invnormal(0.975)*se
>
> twoway rarea lb ub age, sort || ///
>        line pred age, sort
>
> This assumes that pred is your prediction, se is your standard
> error and age is your X variable.
>
> Hope this helps,
> Maarten
>
> --------------------------
> Maarten L. Buis
> Institut fuer Soziologie
> Universitaet Tuebingen
> Wilhelmstrasse 36
> 72074 Tuebingen
> Germany
>
> http://www.maartenbuis.nl
> --------------------------
>
>
>       
>
> *
> *   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/


*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index