R version 2.9.0 (2009-04-17) Copyright (C) 2009 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(21.57042605 + ,20.85991791 + ,22.83338801 + ,20.66336595 + ,21.32536531 + ,22.27684597 + ,21.92591154 + ,22.45459793 + ,20.16265437 + ,21.71889618 + ,22.24418926 + ,21.72461014 + ,22.67014274 + ,21.87964138 + ,21.53258772 + ,21.53542828 + ,22.63324758 + ,20.42954621 + ,20.81940637 + ,20.96742398 + ,22.18603695 + ,20.11073351 + ,22.87939108 + ,21.82631661 + ,21.65535202 + ,22.57684411 + ,21.7253128 + ,21.20477983 + ,22.27307508 + ,20.90219256 + ,21.74908873 + ,20.30973801 + ,22.38754616 + ,22.95654799 + ,20.876948 + ,21.56883418 + ,20.51653508 + ,21.56341137 + ,22.17861935 + ,20.20484476 + ,20.49361503 + ,22.2309343 + ,20.56952319 + ,22.55967854 + ,20.66271844 + ,20.16212462 + ,20.43230715 + ,21.43489345 + ,21.15185608 + ,20.21515545 + ,21.01443381 + ,20.48614743 + ,20.30248735 + ,21.04262218 + ,22.35057069 + ,21.15904728 + ,22.35394545 + ,22.00808343 + ,20.13613076 + ,20.70746214 + ,20.82365356 + ,22.42575992 + ,22.49573871 + ,20.93909849 + ,20.50384265 + ,21.69786569 + ,22.7096688 + ,20.0921546 + ,21.17153149 + ,20.35431418 + ,22.2412928 + ,22.12421728 + ,22.00827589 + ,21.79463904 + ,20.4826361 + ,22.3296286 + ,22.73437354 + ,22.12449167 + ,20.07122105 + ,22.41530833 + ,21.70962552 + ,20.07060461 + ,20.28970842 + ,20.98122517 + ,20.24677417 + ,22.76607882 + ,22.02423968 + ,21.09339434 + ,22.56336875 + ,21.09338725 + ,20.95836627 + ,21.87011511 + ,21.49702004 + ,21.03452784 + ,22.90201002 + ,22.00374104 + ,21.6740742 + ,22.00133469 + ,22.90021635 + ,22.37643116 + ,21.50504737 + ,22.08329736 + ,20.05610928 + ,22.36177195 + ,22.46186163) > par3 = '20' > par2 = '0.95' > par1 = 'two.sided' > #'GNU S' R Code compiled by R2WASP v. 1.0.44 () > #Author: Dr. Ian E. Holliday > #To cite this work: Ian E. Holliday, 2009, 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: > #Technical description: > par2 <- as.numeric(par2) > par3 <- as.numeric(par3) > (tt <- t.test(x,mu=par3,alternative=par1,conf.level=par2)) One Sample t-test data: x t = 17.7946, df = 104, p-value < 2.2e-16 alternative hypothesis: true mean is not equal to 20 95 percent confidence interval: 21.33214 21.66629 sample estimates: mean of x 21.49921 > > #Note: the /var/www/html/rcomp/createtable file can be downloaded at http://www.wessa.net/cretab > load(file="/var/www/html/rcomp/createtable") > > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,'One Sample t-test',2,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'H0',header=TRUE) > a<-table.element(a,tt$null.value) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Alternative',header=TRUE) > a<-table.element(a,tt$alternative) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'CI',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,mean(x)) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'T-Test',header=TRUE) > a<-table.element(a,tt$statistic) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'DF',header=TRUE) > a<-table.element(a,tt$parameter) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'P-Value',header=TRUE) > a<-table.element(a,tt$p.value) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/1nnuf1289393883.tab") > > > > proc.time() user system elapsed 0.204 0.022 0.231