R version 2.13.0 (2011-04-13) Copyright (C) 2011 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i486-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(4388373 + ,3693735 + ,3907312 + ,4181348 + ,3620181 + ,4348829 + ,4625348 + ,3804627 + ,4544584 + ,5066645 + ,4078534 + ,3745722 + ,3552743 + ,3601571 + ,3433988 + ,3692862 + ,3454832 + ,3397402 + ,3420028 + ,3284966 + ,3184667 + ,3190724 + ,3536563 + ,3166755 + ,3120449 + ,3205571 + ,3165900 + ,3077281 + ,3554383 + ,3302514 + ,2832157 + ,2823122 + ,2833848 + ,2997269 + ,3002468 + ,3190853 + ,3116021 + ,3170311 + ,3036823 + ,3184757 + ,3053463 + ,3267532 + ,3232991 + ,3486124 + ,3593010 + ,3317675 + ,3440262 + ,3796403 + ,3560603 + ,3851000 + ,3724466 + ,3756955 + ,3848949 + ,4021178 + ,3733102 + ,3803364 + ,4032201 + ,3881670 + ,3834499 + ,4147843 + ,4751348 + ,4941342 + ,4270105 + ,3802230 + ,3768645 + ,4066594 + ,3996501 + ,3616939 + ,3396091 + ,3529569 + ,3480988 + ,3356168 + ,3307048 + ,3678780 + ,3492646 + ,3195685 + ,3170892 + ,3179460 + ,3241494 + ,3125983 + ,3305627 + ,3422977 + ,3497549 + ,2923266 + ,2915847 + ,3026828 + ,3090246 + ,3325727 + ,3215490 + ,3103716 + ,3125581 + ,3170001 + ,3183922 + ,3375161 + ,3552302 + ,3660216 + ,3583854 + ,3449644 + ,3541948 + ,3963394 + ,3978167 + ,3777944 + ,3880012 + ,4391502 + ,3874293 + ,3818523 + ,4332247 + ,5251123 + ,4418607 + ,3974822 + ,4736792 + ,3989514 + ,4254892 + ,4043933 + ,3927446 + ,4018658 + ,3744912 + ,4311176 + ,4119382 + ,3692637 + ,3763913 + ,3644838 + ,3495784 + ,3620879 + ,3490327 + ,3838441 + ,3452974 + ,3414420 + ,3350028 + ,3110010 + ,3330994 + ,3219399 + ,3308826 + ,3751647 + ,3595068 + ,3071253 + ,3064349 + ,3203886 + ,3204911 + ,3294084) > 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: 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/179fx1322567091.tab") > > > > proc.time() user system elapsed 0.202 0.025 0.220