Hi!
I'm trying to use sapply to my dataframe for z.test function (teaching
demos package)


Sep=cbind(kIp,k02p,k04p,k07p)
Sep=as.data.frame(Sep)

kzt=sapply(Sep, function(m) z.test(m,sd(m)))
Error in z.test(m, sd(Sep)) :
  You must specify a Standard Deviation of the population

kzt=sapply(Sep, function(m) z.test(m,sd(Sep)))
Error in z.test(m, sd(Sep)) :
  You must specify a Standard Deviation of the population

#obviously it can't process the z.test because of the sd function embedded
inside the function. can someone point me how to fix this. Many thanks!

	[[alternative HTML version deleted]]

