# NOT RUN {
test <- ave(fimfunc = "FIM_logistic",
lx = -5, ux = 5, prior = rep(1/4, 4),
param = matrix(c(0.5, 1.5, 0.5, 1.5, 4.0, 4.0, 5.0, 5.0), 4, 2),
iter = 200, k = 3)
plot(test)
print(test)
################################################################################
## using equivalence theorem as stopping rule. Can be applied in H-algorithm
test <- ave (fimfunc = "FIM_logistic",
lx = -5, ux = 5, prior = rep(1/4, 4),
param = matrix(c(0.5, 1.5, 0.5, 1.5, 4.0, 4.0, 5.0, 5.0), 4, 2),
iter = 200, k =3,
control = list(stop_rule = "equivalence",
stoptol = .9995, equivalence_every = 100))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab