onevar.test <- function(x, s2=1, conf.level=0.95, alternative="two.sided") { # Notes: This will perform the one-population variance # test. # # The default confidence level is 0.95. This # can be changed by altering parameter: conf.level # # The default null hypothesis is sigma^2 = 1. This # can be changed by altering parameter: s2 # ### # Test for good input error <- "" if( s2 <= 0 ) { error="Error: Hypothesized variance out of bounds, must be positive" } if(0>conf.level || 1