# NOT RUN {
with(model_3pl_gendata(10, 40),
cbind(true=t, est=model_3pl_eap(u, a, b, c)$t))
with(model_3pl_gendata(10, 40),
cbind(true=t, est=model_3pl_map(u, a, b, c)$t))
# }
# NOT RUN {
# generate data
x <- model_3pl_gendata(2000, 40)
# free estimation, 40 iterations
y <- model_3pl_jmle(x$u, true_params=x, iter=40, verbose=TRUE)
# fix c-parameters, 40 iterations
y <- model_3pl_jmle(x$u, c=0, true_params=x, iter=40)
# }
# NOT RUN {
# generate data
x <- model_3pl_gendata(2000, 40)
# free estimation, 40 iterations
y <- model_3pl_mmle(x$u, true_params=x, iter=40, verbose=TRUE)
# }
# NOT RUN {
with(model_3pl_gendata(1000, 20),
model_3pl_fitplot(u, t, a, b, c, index=c(1, 3, 5)))
# }
Run the code above in your browser using DataLab