Re: [R] t-distribution

2007-08-03 Thread Greg Snow
Healthcare [EMAIL PROTECTED] (801) 408-8111 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nair, Murlidharan T Sent: Friday, August 03, 2007 8:46 AM To: Stephen Tucker; r-help@stat.math.ethz.ch Subject: Re: [R] t-distribution I am trying

Re: [R] t-distribution

2007-08-03 Thread Nair, Murlidharan T
: Friday, August 03, 2007 11:01 AM To: Nair, Murlidharan T; Stephen Tucker; r-help@stat.math.ethz.ch Subject: RE: [R] t-distribution Look at the power.examp and run.power.examp functions in the TeachingDemos package. Do these do what you want? If not you can look at the code in them to see how to fill

Re: [R] t-distribution

2007-08-03 Thread Nair, Murlidharan T
:11 PM To: Nair, Murlidharan T; r-help@stat.math.ethz.ch Subject: RE: [R] t-distribution yes, or p - seq(0.001,0.999,,1000) x - qt(p,df=9) y - dt(x,df=9) plot(x,y,type=l) f - function(x,y,...) { polygon(x=c(x,rev(x)),y=c(y,rep(0,length(y))),...) } with(data.frame(x,y)[x = 2.3,],f(x,y,col=gray90

Re: [R] t-distribution

2007-08-02 Thread Stephen Tucker
PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, August 01, 2007 3:18 PM To: [EMAIL PROTECTED]; r-help@stat.math.ethz.ch Subject: Re: [R] t-distribution Well, is t = 1.11 all that accurate in the first place? :-) In fact, reading beween the lines of the original enquiry, what

Re: [R] t-distribution

2007-08-02 Thread Nair, Murlidharan T
, Murlidharan T; r-help@stat.math.ethz.ch Subject: Re: [R] t-distribution p - seq(0.001,0.999,,1000) x - qt(p,df=9) y - dt(x,df=9) plot(x,y,type=l) polygon(x=c(x,rev(x)),y=c(y,rep(0,length(y))),col=gray90) Hope this helps. ST --- Nair, Murlidharan T [EMAIL PROTECTED] wrote: Indeed, this is what I

Re: [R] t-distribution

2007-08-02 Thread Richard M. Heiberger
I believe you are looking for the functionality I have in the norm.curve function in the HH package. Download and install HH from CRAN and then look at example(norm.curve) __ R-help@stat.math.ethz.ch mailing list

Re: [R] t-distribution

2007-08-02 Thread Nair, Murlidharan T
: Re: [R] t-distribution I believe you are looking for the functionality I have in the norm.curve function in the HH package. Download and install HH from CRAN and then look at example(norm.curve) __ R-help@stat.math.ethz.ch mailing list https

Re: [R] t-distribution

2007-08-02 Thread Stephen Tucker
Tucker; r-help@stat.math.ethz.ch Subject: Re: [R] t-distribution I believe you are looking for the functionality I have in the norm.curve function in the HH package. Download and install HH from CRAN and then look at example(norm.curve

[R] t-distribution

2007-08-01 Thread Nair, Murlidharan T
If I have a calculated t can I get the probability associated with it using an R function by giving it the df and t? I know I can do the whole calculation using t.test() or get the t-distribution using qt(). If t=1.11 and df =9 can I get the probability? Thanks../Murli

Re: [R] t-distribution

2007-08-01 Thread Bill.Venables
for the upper tail: 1-pt(1.11, 9) [1] 0.1478873 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nair, Murlidharan T Sent: Thursday, 2 August 2007 4:43 AM To: r-help@stat.math.ethz.ch Subject: [R] t-distribution If I have a calculated t can I get

Re: [R] t-distribution

2007-08-01 Thread Leeds, Mark \(IED\)
, 2007 2:43 PM To: r-help@stat.math.ethz.ch Subject: [R] t-distribution If I have a calculated t can I get the probability associated with it using an R function by giving it the df and t? I know I can do the whole calculation using t.test() or get the t-distribution using qt(). If t=1.11 and df

Re: [R] t-distribution

2007-08-01 Thread Ben Bolker
Bill.Venables at csiro.au writes: for the upper tail: 1-pt(1.11, 9) [1] 0.1478873 wouldn't pt(1.11, 9, lower.tail=FALSE) be more accurate? __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] t-distribution

2007-08-01 Thread Bill.Venables
: +61 7 3286 7700 mailto:[EMAIL PROTECTED] http://www.cmis.csiro.au/bill.venables/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Bolker Sent: Thursday, 2 August 2007 4:57 AM To: r-help@stat.math.ethz.ch Subject: Re: [R] t-distribution Bill.Venables

Re: [R] t-distribution

2007-08-01 Thread Daniel Nordlund
?pt is what you want. Hope this is helpful, Dan Daniel Nordlund Bothell, WA -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nair, Murlidharan T Sent: Wednesday, August 01, 2007 11:43 AM To: r-help@stat.math.ethz.ch Subject: [R] t-distribution

Re: [R] t-distribution

2007-08-01 Thread Henrique Dallazuanna
: Wednesday, August 01, 2007 3:18 PM To: [EMAIL PROTECTED]; r-help@stat.math.ethz.ch Subject: Re: [R] t-distribution Well, is t = 1.11 all that accurate in the first place? :-) In fact, reading beween the lines of the original enquiry, what the person probably wanted was something like ta - pt

Re: [R] t-distribution

2007-08-01 Thread Ted Harding
On 01-Aug-07 19:18:05, [EMAIL PROTECTED] wrote: Well, is t = 1.11 all that accurate in the first place? :-) In fact, reading beween the lines of the original enquiry, what the person probably wanted was something like ta - pt(-1.11, 9) + pt(1.11, 9, lower.tail = FALSE) which is the

Re: [R] t-distribution

2007-08-01 Thread Nair, Murlidharan T
the curve? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, August 01, 2007 3:18 PM To: [EMAIL PROTECTED]; r-help@stat.math.ethz.ch Subject: Re: [R] t-distribution Well, is t = 1.11 all that accurate in the first place