# NOT RUN {
with(model_gpcm_gendata(10, 40, 3),
cbind(true=t, est=model_gpcm_eap(u, a, b, d)$t))
with(model_gpcm_gendata(10, 40, 3),
cbind(true=t, est=model_gpcm_map(u, a, b, d)$t))
# }
# NOT RUN {
# generate data
x <- model_gpcm_gendata(1000, 40, 3)
# free calibration, 40 iterations
y <- model_gpcm_jmle(x$u, true_params=x, iter=40, verbose=TRUE)
# }
# NOT RUN {
# generate data
x <- model_gpcm_gendata(1000, 40, 3)
# free estimation, 40 iterations
y <- model_gpcm_mmle(x$u, true_params=x, iter=40, verbose=TRUE)
# }
# NOT RUN {
with(model_gpcm_gendata(1000, 20, 3),
model_gpcm_fitplot(u, t, a, b, d, index=c(1, 3, 5)))
# }
Run the code above in your browser using DataLab