[R] T and P Statistics
hamstersquats at web.de
Wed Jun 25 17:30:22 CEST 2008
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
Tong, Michael schrieb:
> How do you calculate T and P statistics (T- test) in R?
> Is there a package out there that can do these calculations?
> Michael Tong
> Futures Associate
> Quantitative Research Services
> Franklin Templeton Investments, Inc.
> 600 Fifth Ave
> New York, NY 10020
> (212) 632-4254
> mtong at templeton.com
> Notice: All email and instant messages (including attachments) sent to
> or from Franklin Templeton Investments (FTI) personnel may be retained,
> monitored and/or reviewed by FTI and its agents, or authorized
> law enforcement personnel, without further notice or consent.
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help