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
: 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
: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
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
, 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
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
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
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
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
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
, 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
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
: +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
?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
: 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
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
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
17 matches
Mail list logo