data(toyped)
x = linkdat(toyped, model=1)
res_max = lod(x, max.only=TRUE)
res_def = lod(x)[1,1]
res_opt = lod(x, t="max")[1,1]
stopifnot(all(0.3 == round(c(res_max, res_def, res_opt), 1)))
data(dominant)
y = linkdat(dominant)
y = setModel(y, model=1, penetrances=c(.001, .9, .99))
lod(y, markers=305:310)
lod(y, markers=305:310, t="max")
Run the code above in your browser using DataLab