Hi,
help(t.test)
x = rnorm(10, mean = 10, sd = 1) #some data
mytest = t.test(x, mu = 10) #is mu = 10
attributes(mytest) #what's in the test
mytest$p.value #obtain the p-value
mytest$statistic #obtain the t-value aka statistic
HTH
Thomas K
ure that a reasonable answer can be extracted from a given body of
data.
~ John Tukey
-Oorspronkelijk bericht-
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Namens Tong, Michael
Verzonden: woensdag 25 juni 2008 15:43
Aan: r-help@r-project.org
Onderwerp: [R] T and P Statistics
How do you calcula
How do you calculate T and P statistics (T- test) in R?
Is there a package out there that can do these calculations?
Best,
Michael Tong
Futures Associate
Quantitative Research Services
Franklin Templeton Investments, Inc.
600 Fifth Ave
New York, NY 10020
(212) 632-4254
[EMAIL PROTECTED]
N
3 matches
Mail list logo