z.test <- function(x, y=NULL, sigmax, sigmay=sigmax, mu = 0, alternative="two.sided", conf.level=0.95 ) { # Test for good input error <- "" if( sigmax <= 0 || sigmay<=0) { error="Error: Variance out of bounds" } if(0>conf.level || 1