R version 2.6.0 (2007-10-03) Copyright (C) 2007 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. Natural language support but running in an English locale 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. > par4 = '0.95' > par3 = '0.1546' > par2 = '27' > par1 = '0.012' > #'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 known Variance (confidence intervals) (v1.0.1) in Free Statistics Software (v$_version), Office for Research Development and Education, URL http://www.wessa.net/rwasp_hypothesismean5.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) > par3<-as.numeric(par3) > par4<-as.numeric(par4) > sigma <- sqrt(par1) > sqrtn <- sqrt(par2) > ua <- par3 - abs(qnorm((1-par4)/2))* sigma / sqrtn > ub <- par3 + abs(qnorm((1-par4)/2))* sigma / sqrtn > ua [1] 0.1132803 > ub [1] 0.1959197 > ul <- par3 - qnorm(par4) * sigma / sqrtn > ul [1] 0.1199234 > ur <- par3 + qnorm(par4) * sigma / sqrtn > ur [1] 0.1892766 > load(file='/var/www/html/rcomp/createtable') > a<-table.start() > a<-table.row.start(a) > a<-table.element(a,hyperlink('http://www.xycoon.com/ht_mean_knownvar.htm','Testing Population Mean with known Variance','learn more about Statistical Hypothesis Testing about the Mean when the Variance is known'),3,TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Population variance',header=TRUE) > a<-table.element(a,par1,2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Sample size',header=TRUE) > a<-table.element(a,par2,2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Sample mean',header=TRUE) > a<-table.element(a,par3,2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Confidence interval',header=TRUE) > a<-table.element(a,par4,2) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,'Type of Interval',header=TRUE) > a<-table.element(a,'Left tail',header=TRUE) > a<-table.element(a,'Right tail',header=TRUE) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,paste('Two-sided confidence interval at ',par4), header=TRUE) > a<-table.element(a,ua) > a<-table.element(a,ub) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,paste('Left one-sided confidence interval at ',par4), header=TRUE) > a<-table.element(a,ul) > a<-table.element(a,'+inf') > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a,paste('Right one-sided confidence interval at ',par4), header=TRUE) > a<-table.element(a,'-inf') > a<-table.element(a,ur) > a<-table.row.end(a) > a<-table.row.start(a) > a<-table.element(a, hyperlink('http://www.xycoon.com/ht_mean_knownvar.htm#ex5', 'more information about confidence interval','example'),3,TRUE) > a<-table.row.end(a) > a<-table.end(a) > table.save(a,file="/var/www/html/rcomp/tmp/192is1194884989.tab") > > > > proc.time() user system elapsed 0.895 0.028 0.914