R version 2.7.0 (2008-04-22) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN 3-900051-07-0 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(-0.361846007532772 + ,3.68863098861213 + ,0.682519663180303 + ,7.63067731671178 + ,-1.52075037210644 + ,5.70955581144987 + ,13.1939928862509 + ,-5.49940323517293 + ,1.76500444649349 + ,1.96677142422135 + ,-5.60662922820024 + ,-7.31646013152379 + ,-1.08563548801227 + ,-0.099103421317697 + ,-9.39514313732207 + ,-6.39447775845358 + ,-2.02805473224696 + ,0.903602088633067 + ,7.57491469457003 + ,-2.19407311445752 + ,3.58898833702079 + ,-1.68951274457543 + ,-1.53671157669086 + ,13.3598886375142 + ,-3.65726657887787 + ,0.613493186862468 + ,9.24506908223031 + ,11.0285738876639 + ,-3.49893748343257 + ,-6.55850163797107 + ,5.54750744110568 + ,16.5005808635365 + ,-0.0867999869147866 + ,-10.1895526735612 + ,-1.56002146200367 + ,3.61791774409454 + ,-3.46228026897451 + ,-0.839719033549138 + ,-1.74844063591575 + ,-5.59275453302008 + ,-4.31083509741400 + ,8.28778989827125 + ,-14.0676602788114 + ,-4.07578881412959 + ,3.95794121224257 + ,-2.54404876219145 + ,24.3555160491049 + ,11.7342693021934 + ,3.81944484749606 + ,-2.98176766619709 + ,7.45551605729516 + ,-6.39245158356992 + ,11.7003155629076 + ,2.36027611470617 + ,-7.48442696186156 + ,-2.54111530629837 + ,-2.30507409276129 + ,10.8550201878513 + ,-2.11331989623902 + ,3.4086895867965 + ,11.2003605872847 + ,-1.20537867882487 + ,5.81786820725412 + ,-2.61150202837964 + ,-1.54008349441135 + ,-5.42145151519334 + ,11.6034074049369 + ,-9.06789177079852) > par20 = '' > par19 = '' > par18 = '' > par17 = '' > par16 = '' > par15 = '' > par14 = '' > par13 = '' > par12 = '' > par11 = '' > par10 = '' > par9 = '' > par8 = '' > par7 = '' > par6 = '' > par5 = '' > par4 = '' > par3 = '' > par2 = '0' > par1 = '0.95' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Prof. Dr. P. Wessa > #To cite this work: Wessa P., (2007), Testing Population Mean with unknown Variance (confidence intervals) (v1.0.1) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_hypothesismeanu.wasp/ > #Source of accompanying publication: Office for Research, Development, and Education > #Technical description: Write here your technical program description > par1 <- as.numeric(par1) > par2 <- as.numeric(par2) > len <- length(x) > df <- len - 1 > sd <- sd(x) > mx <- mean(x) > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/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/www/html/rcomp/tmp/1irb61230380651.tab") > > > > proc.time() user system elapsed 0.823 0.031 0.848