Nstart <- Nfour/(2^Lev) + 1
Nfinish <- Nstart -1 + Nfour/(2^Lev)
LengLev <- Nfinish - Nstart + 1
NW <- floor(LengLev*N/Nfour)
if(NW > 0){
for(j in Nstart:(Nstart + NW -1)){
Dw <- abs(Y[j])
Rnorm <- Rnorm + Dw^2
}
}
Thank you very much for helping me get better.
Maura
tutti i telefonini TIM!
[[alternative HTML version deleted]]
______________________________________________
R-h...@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.
if(NW > 0){
Rnorm <- Rnorm + sum(abs(Y[Nstart:(Nstart + NW - 1)]) ^ 2)
}
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem that you are trying to solve?
ix <- seq(Nstart, length = NW)
sum(Y[ix]^ 2)
Also please read the last line on every
message to r-help. The code in your
post lacks all 4 of the asked for
ingredients: 1. there are no comments,
2. it has lines not subsequently used
(not minimal), 3. it not self-contained
and 4. there is no reproducible
calculation.