R packages
R 패키지 설치 - BSDA (Basic Statistics and Data Analysis)
거인과난쟁이
2011. 1. 14. 16:28
http://cran.r-project.org/web/packages/BSDA/index.html
Data sets for book "Basic Statistics and Data Analysis" by Larry J. Kitchens
아래의 내용은 CentOS5.5에서 작업한 것이다:
> library(BSDA)
Loading required package: e1071
Loading required package: class
Attaching package: 'BSDA'
The following object(s) are masked from 'package:datasets':
Orange
> x<-c(25, 16, 44, 82, 36, 58, 18)
> sign.test(x, md=35, alternative="greater")
Error: could not find function "sign.test"
> sign. test(x, md=35, alternative="greater")
Error: unexpected symbol in "sign. test"
> SIGN.test(x, md=35, alternative="greater") <============== 대문자로 SIGN
One-sample Sign-Test
data: x
s = 4, p-value = 0.5
alternative hypothesis: true median is greater than 35
95 percent confidence interval:
17.54286 Inf
sample estimates:
median of x
36
Conf.Level L.E.pt U.E.pt
Lower Achieved CI 0.9375 18.0000 Inf
Interpolated CI 0.9500 17.5429 Inf
Upper Achieved CI 0.9922 16.0000 Inf