When I run the below commands from Lecture4, Norbis 2022, I get two extra points, one for the mean,
and one for the standard deviation.
I understand why when I read the documentation of showInTriangle ("an attempt is made to bind the elements row-wise"),
but perhaps it should be easier to avoid this error?!
With the current code, the last line below should be
showInTriangle(k$perSimulation)
library(ibdsim2, quietly = T)
x = nuclearPed(2)
s = ibdsim(x, N = 2, seed = 1729, verbose = F)
k = realisedKappa(s, ids = c(3, 4))
ribd::showInTriangle(k)
When I run the below commands from Lecture4, Norbis 2022, I get two extra points, one for the mean, and one for the standard deviation. I understand why when I read the documentation of showInTriangle ("an attempt is made to bind the elements row-wise"), but perhaps it should be easier to avoid this error?! With the current code, the last line below should be
showInTriangle(k$perSimulation)
Created on 2022-07-07 by the reprex package (v2.0.1)