R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-pc-linux-gnu (32-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > x <- c(56,56,54,89,40,25,92,18,63,44,33,84,88,55,60,66,154,53,119,41,61,58,75,33,40,92,100,112,73,40,45,60,62,75,31,77,34,46,99,17,66,30,76,146,67,56,107,58,34,61,119,42,66,89,44,66,24,259,17,64,41,68,168,43,132,105,71,112,94,82,70,57,53,103,121,62,52,52,32,62,45,46,63,75,88,46,53,37,90,63,78,25,45,46,41,144,82,91,71,63,53,62,63,32,39,62,117,34,92,93,54,144,14,61,109,38,73,75,50,61,55,77,75,72,50,32,53,42,71,10,35,65,25,66,41,86,16,42,19,19,45,65,35,95,49,37,64,38,34,32,65,52,62,65,83,95,29,18,33,247,139,29,118,110,67,42,65,94,64,81,95,67,63,83,45,30,70,32,83,31,67,66,10,70,103,5,20,5,36,34,48,40,43,31,42,46,33,18,55,35,59,19,66,60,36,25,47,54,53,40,40,39,14,45,36,28,44,30,22,17,31,55,54,21,14,81,35,43,46,30,23,38,54,20,53,45,39,20,24,31,35,151,52,30,31,29,57,40,44,25,77,35,11,63,44,19,13,42,38,29,20,27,20,19,37,26,42,49,30,49,67,28,19,49,27,30,22,12,31,20,20,39,29,16,27,21,19,35,14) > par2 = '55' > par1 = '0.95' > par2 <- '55' > par1 <- '0.95' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: AUTHOR(S), (YEAR), YOUR SOFTWARE TITLE (vNUMBER) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_YOURPAGE.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description (don't use hard returns!) > par1 <- as.numeric(par1) > par2 <- as.numeric(par2) > len <- length(x) > df <- len - 1 > sd <- sd(x) > mx <- mean(x) > > #Note: the /var/wessaorg/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/wessaorg/rcomp/createtable") > > delta2 <- abs(qt((1-par1)/2,df)) * sd / sqrt(len) > delta1 <- abs(qt((1-par1),df)) * sd / sqrt(len) > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'Hypothesis Test about the Mean - Confidence Interval',2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Sample size',header=TRUE) > a<-table.element(a,len) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Sample standard deviation',header=TRUE) > a<-table.element(a,sd) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Confidence',header=TRUE) > a<-table.element(a,par1) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Null hypothesis',header=TRUE) > a<-table.element(a,par2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Sample Mean',header=TRUE) > a<-table.element(a,mx) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'2-sided Confidence Interval',header=TRUE) > dum <- paste('[',mx-delta2) > dum <- paste(dum,',') > dum <- paste(dum,mx+delta2) > dum <- paste(dum,']') > a<-table.element(a,dum) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Left-sided Confidence Interval',header=TRUE) > dum <- paste('[',mx-delta1) > dum <- paste(dum,', +inf ]') > a<-table.element(a,dum) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Right-sided Confidence Interval',header=TRUE) > dum <- paste('[ -inf, ',mx+delta1) > dum <- paste(dum,']') > a<-table.element(a,dum) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/wessaorg/rcomp/tmp/189rw1353258707.tab") > > > > proc.time() user system elapsed 0.273 0.079 0.328