R version 2.15.2 (2012-10-26) -- "Trick or Treat" Copyright (C) 2012 The R Foundation for Statistical Computing ISBN 3-900051-07-0 Platform: i686-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,8' > par4 = '0.36' > par3 = '0.95' > par2 = '0.05' > par1 = '20000' > par5 <- '0,8' > par4 <- '0.36' > par3 <- '0.95' > par2 <- '0.05' > par1 <- '20000' > #'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) > par4 <- as.numeric(par4) > par5 <- as.numeric(par5) Warning message: NAs introduced by coercion > (z <- abs(qnorm((1-par3)/2)) + abs(qnorm(1-par5))) [1] NA > (z1 <- abs(qnorm(1-par3)) + abs(qnorm(1-par5))) [1] NA > z2 <- z*z > z2one <- z1*z1 > z24 <- z2 * par4 > z24one <- z2one * par4 > npop <- array(NA, 200) > ppop <- array(NA, 200) > for (i in 1:200) + { + ppop[i] <- i * 100 + npop[i] <- ppop[i] * z24 / (z24 + (ppop[i] - 1) * par2*par2) + } > postscript(file="/var/fisher/rcomp/tmp/19wih1355080016.ps",horizontal=F,onefile=F,pagecentre=F,paper="special",width=8.3333333333333,height=5.5555555555556) > plot(ppop,npop, xlab='population size', ylab='sample size (2 sided test)', main = paste('Confidence',par3)) Error in plot.window(...) : need finite 'ylim' values Calls: plot -> plot.default -> localWindow -> plot.window In addition: Warning messages: 1: In min(x) : no non-missing arguments to min; returning Inf 2: In max(x) : no non-missing arguments to max; returning -Inf Execution halted