Re: [R] Please find the error in my code

2008-03-15 Thread ArthurLi2001
## Corrected code: sim.size <- 200 sample.size <- 10 set.seed(231) mu1 <- 0 delta <- seq(-2,2, length=50) pow.ttest<- numeric(50) pow.kstest<- numeric(50) pow.wtest<- numeric(50) for (j in 1:length(delta)) { mu2 <- mu1 + delta[j] pt.test <- numeric(sim.size) pw.test <- numeric(sim.

Re: [R] Please find the error in my code

2008-03-15 Thread Uwe Ligges
kasturi bardhan wrote: > hello everybody > I use the following code for my programming & it runs with the error as > specified below.Any help that would disolve the error will be highly > appreciated. > Thanks in advance > my code looks like this > R programme for simulating the power of t

[R] Please find the error in my code

2008-03-15 Thread kasturi bardhan
hello everybody I use the following code for my programming & it runs with the error as specified below.Any help that would disolve the error will be highly appreciated. Thanks in advance my code looks like this R programme for simulating the power of the two sample t test vs various