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. > par5 = '0.05' > par4 = '20' > par3 = '20,2857142857143' > par2 = '0.36' > par1 = '105' > #'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) > par3<-as.numeric(par3) Warning message: NAs introduced by coercion > par4<-as.numeric(par4) > par5<-as.numeric(par5) > c <- 'NA' > csn <- abs(qnorm(par5)) > csn2 <- abs(qnorm(par5/2)) > z <- (par3 - par4) / (sqrt(par2/par1)) > p <- 1-pnorm(z) > if (par3 == par4) + { + conclusion <- 'Error: the null hypothesis and sample mean must not be equal.' + conclusion2 <- conclusion + } else { + if (p < par5/2) + { + conclusion2 <- 'Reject the null hypothesis' + } else { + conclusion2 <- 'Do not reject the null hypothesis' + } + } Error in if (par3 == par4) { : missing value where TRUE/FALSE needed Execution halted