Hi,
I want to compute p value of sign test for sample size=15 from normal
distr., sd=0.5, mean=1, alternative should be two sided.

Is this code correct in this situation?

 binom.test(sum(rnorm(15,1,0.5)>0),15,p=0.5,alternative="two")$p.value

Or should I use another code (function) e.g. rbinom?

Thank you very much.

kind regards,
T. Bal

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to