Re: [R] sciplot question

2009-05-26 Thread Jarle Bjørgeengen
On May 26, 2009, at 3:02 , Frank E Harrell Jr wrote: Jarle Bjørgeengen wrote: On May 26, 2009, at 4:37 , Frank E Harrell Jr wrote: Manuel Morales wrote: On Mon, 2009-05-25 at 06:22 -0500, Frank E Harrell Jr wrote: Jarle Bjørgeengen wrote: On May 24, 2009, at 4:42 , Frank E Harrell Jr wrote

Re: [R] sciplot question

2009-05-26 Thread Frank E Harrell Jr
Jarle Bjørgeengen wrote: On May 26, 2009, at 4:37 , Frank E Harrell Jr wrote: Manuel Morales wrote: On Mon, 2009-05-25 at 06:22 -0500, Frank E Harrell Jr wrote: Jarle Bjørgeengen wrote: On May 24, 2009, at 4:42 , Frank E Harrell Jr wrote: Jarle Bjørgeengen wrote: On May 24, 2009, at 3:34

Re: [R] sciplot question

2009-05-26 Thread Jarle Bjørgeengen
On May 26, 2009, at 4:37 , Frank E Harrell Jr wrote: Manuel Morales wrote: On Mon, 2009-05-25 at 06:22 -0500, Frank E Harrell Jr wrote: Jarle Bjørgeengen wrote: On May 24, 2009, at 4:42 , Frank E Harrell Jr wrote: Jarle Bjørgeengen wrote: On May 24, 2009, at 3:34 , Frank E Harrell Jr wrot

Re: [R] sciplot question

2009-05-25 Thread Frank E Harrell Jr
Manuel Morales wrote: On Mon, 2009-05-25 at 06:22 -0500, Frank E Harrell Jr wrote: Jarle Bjørgeengen wrote: On May 24, 2009, at 4:42 , Frank E Harrell Jr wrote: Jarle Bjørgeengen wrote: On May 24, 2009, at 3:34 , Frank E Harrell Jr wrote: Jarle Bjørgeengen wrote: Great, thanks Manuel. Just

Re: [R] sciplot question

2009-05-25 Thread Manuel Morales
On Mon, 2009-05-25 at 06:22 -0500, Frank E Harrell Jr wrote: > Jarle Bjørgeengen wrote: > > > > On May 24, 2009, at 4:42 , Frank E Harrell Jr wrote: > > > >> Jarle Bjørgeengen wrote: > >>> On May 24, 2009, at 3:34 , Frank E Harrell Jr wrote: > Jarle Bjørgeengen wrote: > > Great, > >

Re: [R] sciplot question

2009-05-25 Thread Frank E Harrell Jr
spencerg wrote: Frank E Harrell Jr wrote: spencerg wrote: Dear Frank, et al.: Frank E Harrell Jr wrote: Yes; I do see a normal distribution about once every 10 years. To what do you attribute the nonnormality you see in most cases? (1) Unmodeled components of variance that c

Re: [R] sciplot question

2009-05-25 Thread spencerg
Frank E Harrell Jr wrote: spencerg wrote: Dear Frank, et al.: Frank E Harrell Jr wrote: Yes; I do see a normal distribution about once every 10 years. To what do you attribute the nonnormality you see in most cases? (1) Unmodeled components of variance that can generate erro

Re: [R] sciplot question

2009-05-25 Thread Frank E Harrell Jr
Jarle Bjørgeengen wrote: On May 24, 2009, at 4:42 , Frank E Harrell Jr wrote: Jarle Bjørgeengen wrote: On May 24, 2009, at 3:34 , Frank E Harrell Jr wrote: Jarle Bjørgeengen wrote: Great, thanks Manuel. Just for curiosity, any particular reason you chose standard error , and not confidence

Re: [R] sciplot question

2009-05-25 Thread Jarle Bjørgeengen
On May 24, 2009, at 4:42 , Frank E Harrell Jr wrote: Jarle Bjørgeengen wrote: On May 24, 2009, at 3:34 , Frank E Harrell Jr wrote: Jarle Bjørgeengen wrote: Great, thanks Manuel. Just for curiosity, any particular reason you chose standard error , and not confidence interval as the default

Re: [R] sciplot question

2009-05-24 Thread Frank E Harrell Jr
spencerg wrote: Dear Frank, et al.: Frank E Harrell Jr wrote: Yes; I do see a normal distribution about once every 10 years. To what do you attribute the nonnormality you see in most cases? (1) Unmodeled components of variance that can generate errors in interpretation if i

Re: [R] sciplot question

2009-05-24 Thread spencerg
Dear Frank, et al.: Frank E Harrell Jr wrote: Yes; I do see a normal distribution about once every 10 years. To what do you attribute the nonnormality you see in most cases? (1) Unmodeled components of variance that can generate errors in interpretation if ignored, even

Re: [R] sciplot question

2009-05-24 Thread Frank E Harrell Jr
Jarle Bjørgeengen wrote: On May 24, 2009, at 3:34 , Frank E Harrell Jr wrote: Jarle Bjørgeengen wrote: Great, thanks Manuel. Just for curiosity, any particular reason you chose standard error , and not confidence interval as the default (the naming of the plotting functions associates close

Re: [R] sciplot question

2009-05-24 Thread Jarle Bjørgeengen
On May 24, 2009, at 3:34 , Frank E Harrell Jr wrote: Jarle Bjørgeengen wrote: Great, thanks Manuel. Just for curiosity, any particular reason you chose standard error , and not confidence interval as the default (the naming of the plotting functions associates closer to the confidence in

Re: [R] sciplot question

2009-05-24 Thread Frank E Harrell Jr
Jarle Bjørgeengen wrote: Great, thanks Manuel. Just for curiosity, any particular reason you chose standard error , and not confidence interval as the default (the naming of the plotting functions associates closer to the confidence interval ) error indication . - Jarle Bjørgeengen O

Re: [R] sciplot question

2009-05-24 Thread Jarle Bjørgeengen
Great, thanks Manuel. Just for curiosity, any particular reason you chose standard error , and not confidence interval as the default (the naming of the plotting functions associates closer to the confidence interval ) error indication . - Jarle Bjørgeengen On May 24, 2009, at 3:02

Re: [R] sciplot question

2009-05-24 Thread Manuel Morales
You define your own function for the confidence intervals. The function needs to return the two values representing the upper and lower CI values. So: qt.fun <- function(x) qt(p=.975,df=length(x)-1)*sd(x)/sqrt(length(x)) my.ci <- function(x) c(mean(x)-qt.fun(x), mean(x)+qt.fun(x)) lineplot.CI(x.f

[R] sciplot question

2009-05-22 Thread Jarle Bjørgeengen
Hi, I would like to have lineplot.CI and barplot.CI to actually plot confidence intervals , instead of standard error. I understand I have to use the ci.fun option, but I'm not quite sure how. Like this : > qt(0.975,df=n-1)*s/sqrt(n) but how can I apply it to visualize the length of th