# NOT RUN {
with(model_grm_gendata(10, 50, 3),
cbind(true=t, est=model_grm_eap(u, a, b)$t))
with(model_grm_gendata(10, 50, 3),
cbind(true=t, est=model_grm_map(u, a, b)$t))
# }
# NOT RUN {
# generate data
x <- model_grm_gendata(1000, 40, 3)
# free calibration, 40 iterations
y <- model_grm_jmle(x$u, true_params=x, iter=40, verbose=TRUE)
# }
# NOT RUN {
# generate data
x <- model_grm_gendata(1000, 40, 3)
# free estimation, 40 iterations
y <- model_grm_mmle(x$u, true_params=x, iter=40, verbose=TRUE)
# }
# NOT RUN {
with(model_grm_gendata(1000, 20, 3),
model_grm_fitplot(u, t, a, b, index=c(1, 3, 5)))
# }
Run the code above in your browser using DataLab