[R] calculating power function

2013-12-18 Thread mb
Hello, i know there are several functions on r to calculate the power of a test. f.e the functions of pwr packet. In this packet the use the power function (1-\beta) to calculate. My question is how we get this function for anova (pwr.anova.test)? I know that 1-\beta=P(H1|H1) =

Re: [R] plotting two histograms on one plot with hist function

2012-06-27 Thread Blignaut, M, Mej mb...@sun.ac.za
,bty=n, fill=c(Red,Green)) Thanks again for the help! From: John Kane [mailto:jrkrid...@inbox.com] Sent: 26 June 2012 23:27 To: ilai Cc: Blignaut, M, Mej mb...@sun.ac.za; r-help@r-project.org Subject: Re: [R] plotting two histograms on one plot with hist function Oh, I had not thought

[R] plotting two histograms on one plot with hist function

2012-06-26 Thread Blignaut, M, Mej mb...@sun.ac.za
I would like to plot two data sets (frequency (y-axis) of mean values for 0-1(x=axis)) on a single histogram for comparison. The hist() only allow the overlay of two histograms, and although barplot() allows beside=TRUE, it does not show frequency values (like hist) but rather all of the