[R-sig-dyn-mod] R-sig-dynamic-models Digest, Vol 80, Issue 1

Titus Kassem gtkassem at gmail.com
Wed Dec 17 18:06:19 CET 2014


Hi all,

I really want to get  prediction interval. I can plot the linear regression
line, however, I want two other lines, one above and one below the
regression line.
Thank you.

Titus Kassem

On Wed, Dec 17, 2014 at 12:00 PM, <
r-sig-dynamic-models-request at r-project.org> wrote:
>
> Send R-sig-dynamic-models mailing list submissions to
>         r-sig-dynamic-models at r-project.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://stat.ethz.ch/mailman/listinfo/r-sig-dynamic-models
> or, via email, send a message with subject or body 'help' to
>         r-sig-dynamic-models-request at r-project.org
>
> You can reach the person managing the list at
>         r-sig-dynamic-models-owner at r-project.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of R-sig-dynamic-models digest..."
>
>
> Today's Topics:
>
>    1. regression plot and 10 and 90 percentiles (Titus Kassem)
>    2. Re: regression plot and 10 and 90 percentiles (Thomas Petzoldt)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 16 Dec 2014 14:12:10 +0100
> From: Titus Kassem <gtkassem at gmail.com>
> To: r-sig-dynamic-models at r-project.org
> Subject: [R-sig-dyn-mod] regression plot and 10 and 90 percentiles
> Message-ID:
>         <CAG92UYA62n31Zucu2_tCjPNqwfGEJAkznRcov3T+GR3z9=-
> X_A at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Dear all,
>
> I have some set of data that I used to plot a simple regression line.
> However, when I try to plot two other lines which are the 10 and 90th
> percentiles on the same graphic window but was unable to achieve due to my
> limited knowledge of r. Please kind help to do that. My data is below. I
> want GA to on the x-axis and EFW to be on the y-axis.
> Also attached is the txt version of the data. kindly help
>
> EFW GA
> 132 15
> 210 18
> 1796  32
> 125 15
> 591 23
> 88 14
> 104 14
> 284 19
> 1150  28
> 449 21
> 2221 34
> 1953 32
> 1146 28
> 204 17
> 2797 37
> 840 26
> 224 18
> 3711 40
> 110 15
> 93 14
> 320 20
> 2449 35
> 2062 33
> 277 19
> 2577 36
> 2644 36
> 81 14
> 73 13
> 560 23
> 600 23
> 158 16
> 864 26
> 2660  35
> 132 15
> 210 18
> 1592  31
> 121 15
> 591    23
> 88 14
> 104 14
> 284 19
> 1304  29
> 781 25
> 1737 32
> 101 14
> 1191 28
> 1326 29
> 1015 27
> 173 17
> 1096 28
> 76 13
> 198 17
> 145 16
> 97 14
> 3881 40
> 1388 29
> 2849 36
> 701 24
> 355 20
> 2432 35
> 1174 28
> 244 18
> 3063 37
> 3945 41
> 1641 31
> 1570 30
> 3649 39
> 3268 38
> 515 22
> 3376 38
> 2560 35
> 861 26
> 545 23
> 494 22
> 2745 36
> 499 22
> 92 14
> 591 23
> 132 16
> 1070 28
> 1149 31
> 2449 35
> 919 26
> 376 21
> 132 16
> 447 22
> 71 13
>
> Titus Kassem
> -------------- next part --------------
> EFW     GA
> 132     15
> 210     18
> 1796    32
> 125     15
> 591     23
> 88      14
> 104     14
> 284     19
> 1150    28
> 449     21
> 2221    34
> 1953    32
> 1146    28
> 204     17
> 2797    37
> 840     26
> 224     18
> 3711    40
> 110     15
> 93      14
> 320     20
> 2449    35
> 2062    33
> 277     19
> 2577    36
> 2644    36
> 81      14
> 73      13
> 560     23
> 600     23
> 158     16
> 864     26
> 2660    35
> 132     15
> 210     18
> 1592    31
> 121     15
> 591     23
> 88      14
> 104     14
> 284     19
> 1304    29
> 781     25
> 1737    32
> 101     14
> 1191    28
> 1326    29
> 1015    27
> 173     17
> 1096    28
> 76      13
> 198     17
> 145     16
> 97      14
> 3881    40
> 1388    29
> 2849    36
> 701     24
> 355     20
> 2432    35
> 1174    28
> 244     18
> 3063    37
> 3945    41
> 1641    31
> 1570    30
> 3649    39
> 3268    38
> 515     22
> 3376    38
> 2560    35
> 861     26
> 545     23
> 494     22
> 2745    36
> 499     22
> 92      14
> 591     23
> 132     16
> 1070    28
> 1149    31
> 2449    35
> 919     26
> 376     21
> 132     16
> 447     22
> 71      13
>
> ------------------------------
>
> Message: 2
> Date: Tue, 16 Dec 2014 15:37:51 +0100
> From: Thomas Petzoldt <thomas.petzoldt at tu-dresden.de>
> To: Special Interest Group for Dynamic Simulation Models in R
>         <r-sig-dynamic-models at r-project.org>
> Subject: Re: [R-sig-dyn-mod] regression plot and 10 and 90 percentiles
> Message-ID: <549043BF.3060808 at tu-dresden.de>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi,
>
> 1) I think this may be the wrong mailing list for your question. Such
> questions are typical for r-help.
>
> 2) The dependency of your data is nonlinear. What do you mean with
> "regression line"? Do you want to get a straight line, or do you have
> any nonlinear model in mind, or do you just want to get a "smooth line"?
>
> 3) What kind of "percentiles" do you mean? Is it possible, that you
> really want to get confidence intervals? Or a prediction interval?
>
> thpe
>
>
> On 12/16/2014 2:12 PM, Titus Kassem wrote:
> > Dear all,
> >
> > I have some set of data that I used to plot a simple regression
> > line. However, when I try to plot two other lines which are the 10
> > and 90th percentiles on the same graphic window but was unable to
> > achieve due to my limited knowledge of r. Please kind help to do
> > that. My data is below. I want GA to on the x-axis and EFW to be on
> > the y-axis. Also attached is the txt version of the data. kindly
> > help
> >
>
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> R-sig-dynamic-models mailing list
> R-sig-dynamic-models at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-dynamic-models
>
>
> ------------------------------
>
> End of R-sig-dynamic-models Digest, Vol 80, Issue 1
> ***************************************************
>

	[[alternative HTML version deleted]]



More information about the R-sig-dynamic-models mailing list