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(7 + ,5 + ,6 + ,4 + ,5 + ,6 + ,7 + ,6 + ,6 + ,6 + ,5 + ,5 + ,4 + ,6 + ,6 + ,5 + ,3 + ,7 + ,3 + ,5 + ,3 + ,5 + ,2 + ,6 + ,3 + ,6 + ,6 + ,5 + ,5 + ,7 + ,6 + ,5 + ,5 + ,4 + ,4 + ,6 + ,5 + ,5 + ,7 + ,5 + ,5 + ,6 + ,5 + ,6 + ,7 + ,5 + ,5 + ,5 + ,6 + ,2 + ,4 + ,4 + ,6 + ,3 + ,6 + ,6 + ,5 + ,6 + ,1 + ,5 + ,7 + ,4 + ,5 + ,6 + ,4 + ,6 + ,6 + ,5 + ,5 + ,3 + ,5 + ,6 + ,5 + ,6 + ,6 + ,4 + ,4 + ,6 + ,7 + ,4 + ,5 + ,6 + ,6 + ,5 + ,3 + ,7 + ,6 + ,4 + ,4 + ,5 + ,3 + ,7 + ,6 + ,6 + ,4 + ,5 + ,6 + ,5 + ,6 + ,6 + ,4 + ,5 + ,6 + ,5 + ,5 + ,4 + ,4 + ,6 + ,5 + ,6 + ,5 + ,6 + ,5 + ,4 + ,6 + ,4 + ,5 + ,5 + ,6 + ,3 + ,5 + ,4 + ,5 + ,5 + ,7 + ,5 + ,7 + ,5 + ,4 + ,6 + ,4 + ,4 + ,4 + ,4 + ,6 + ,6 + ,5 + ,3 + ,6 + ,5 + ,4 + ,5 + ,2 + ,5 + ,7 + ,4 + ,4 + ,7 + ,6 + ,5 + ,5 + ,5 + ,7 + ,6 + ,6 + ,5 + ,2 + ,4 + ,6 + ,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,6 + ,5 + ,6 + ,7 + ,5 + ,4 + ,5 + ,4 + ,6 + ,6 + ,5 + ,4 + ,5 + ,7 + ,6 + ,5 + ,6 + ,6 + ,5 + ,6 + ,6 + ,5 + ,5 + ,4 + ,7 + ,7 + ,5 + ,7 + ,6 + ,5 + ,5 + ,7 + ,5 + ,5 + ,5 + ,5 + ,3 + ,5 + ,5 + ,4 + ,4 + ,7 + ,6 + ,6 + ,6 + ,5 + ,5 + ,5 + ,6 + ,2 + ,5 + ,7 + ,6 + ,5 + ,5 + ,6 + ,6 + ,5 + ,5 + ,2 + ,7 + ,7 + ,5 + ,6 + ,5 + ,6 + ,5 + ,6 + ,6 + ,7 + ,6 + ,6 + ,6 + ,6 + ,4 + ,6 + ,4 + ,5 + ,5) > 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 = -334.4652, df = 647, p-value < 2.2e-16 alternative hypothesis: true mean is not equal to 20 95 percent confidence interval: 5.073371 5.247616 sample estimates: mean of x 5.160494 > > #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/1ulev1289498020.tab") > > > > proc.time() user system elapsed 0.263 0.051 0.336