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. > par4 = '0.05' > par3 = '13' > par2 = '13,78' > par1 = '63' > par4 <- '0.05' > par3 <- '13' > par2 <- '13,78' > par1 <- '63' > #'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) Warning message: NAs introduced by coercion > par3<-as.numeric(par3) > par4<-as.numeric(par4) > df <- par1 - 1 > myc <- df * par2 / par3 > myc [1] NA > if (par2 > par3) + { + myp <- 1 - pchisq(myc,df) + } else { + myp <- pchisq(myc,df) + } Error in if (par2 > par3) { : missing value where TRUE/FALSE needed Execution halted