Displaying 1 result from an estimated 1 matches for "counts1".
Did you mean:
counts
2010 Feb 05
1
Appending results via for loop
...dataframe beforehand, or can it be dynamic? I've read the help files and the mailing lists, but I think I am not wording my question properly to find the right answers, so I'm opting for this instead : )
Here's my code:
window <- 50
size <- 0
if (length(counts2$Count)<length(counts1$Count)) { size <-length(counts2$Count) } else { size <- length(counts1$Count) }
a <- 0
b <- 0
alpha <- .05
n <- window
pval <- qchisq((1-(alpha / n)), 1)
results <- c(seq(1,size,window))
loop <- 1
for (i in seq(1,size,window)) {
a <- i
b <- i + window - 1
counts...