Few runs? [Bioanalytics]
❝ […] How do we test or measure for an unexpected pattern?
❝ I kept coming back to ideas of runs tests which as far as I know tend to be quite insensitive when there are not too many points (here: subjects).
I wouldn’t say so. 20–6 are just two runs, Try:
require(tseries)
x <- as.factor(c(rep("normal", 20), rep(">ULOQ", 6)))
runs.test(x, alternative="less") # test against "under-mixing"
Runs Test
data: x
Standard Normal = -4.7214, p-value = 1.171e-06
alternative hypothesis: less
8 runs: p 0.1003 and 7 runs: p 0.03192; just two is not an awful lot…
❝ We could perhaps divide the 26 subjects into two halves and quantify the probability of having all issues in one half etc. But it does seem too crude. We could divide the subjects into more chunks and perhaps under some circumstances get better resolution (?). OK 26 as in this specific case is only divisible by two primes but that's just a practicality.
Why do you want to divide the subjects into more chunks at all? I think there are two issues:
- 6 out of 26 were out of range. That’s a high percentage, but shit happens. Either these high concentrations were “normal” (the analyst had insufficient information about the PK, aimed too low,
) or sumfink went wrong (I had some ideas, but Ken didn’t respond). In the former case he should do better in the next study and in the latter try to find an explanation.
- Now we should additionally ask how likely we could see these results “clustered” – and not at random. Resampling would help to get an idea.
set.seed(123456)
n <- 1e5
s <- 0
for(j in 1:n) {
if(runs.test(sample(x), alternative="less")$p.value < 0.05) s <- s+1
}
cat("significant runs:", signif(100*s/n, 4), "%\n")
significant runs: 7.005 %
❝ Which test do you think would find appropriate use in these situations?
I don’t know. I’m just thinking loud. If I’m not wrong, we can get a maximum of 13 runs, which is not significant:
x <- as.factor(c(rep(c("normal", ">ULOQ"), 6), rep("normal", 14)))
runs.test(x, alternative="greater") # test against "over-mixing"
Runs Test
data: x
Standard Normal = 1.5885, p-value = 0.05609
alternative hypothesis: greater
Dif-tor heh smusma 🖖🏼 Довге життя Україна!
![[image]](https://static.bebac.at/pics/Blue_and_yellow_ribbon_UA.png)
Helmut Schütz
![[image]](https://static.bebac.at/img/CC by.png)
The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes
Complete thread:
- no of samples above ULOQ Ken Peh 2014-08-14 17:40
- no of samples above ULOQ ElMaestro 2014-08-14 19:28
- Pattern? Helmut 2014-08-15 04:16
- Pattern? Ken Peh 2014-08-17 20:31
- Not deserving an answer? Helmut 2014-08-17 21:27
- Combinatorics ElMaestro 2014-08-17 23:17
- Well done! Helmut 2014-08-17 23:43
- Pattern? ElMaestro 2014-08-18 23:54
- Few runs?Helmut 2014-08-19 03:04
- Few runs? ElMaestro 2014-08-19 23:32
- Few runs? ElMaestro 2014-08-20 00:07
- Hazelnut-sized brain Helmut 2014-08-20 11:27
- Few runs? ElMaestro 2014-08-20 00:07
- Few runs? ElMaestro 2014-08-19 23:32
- Few runs?Helmut 2014-08-19 03:04
- Pattern? Ken Peh 2014-08-17 20:31