## Not run:
# data(binned_zmat)
# output_piem <- piem(pbz, bz)
#
# # extract the last iteration to use it in repfdr (see help(repfdr)):
# Pi1 <- output_piem$last.iteration
# data(Pi)
# stopifnot(all.equal(Pi,Pi1))
#
# # simulation data:
# data(binned_zmat_sim)
# output_piem_sim <- piem(pbz_sim, bz_sim)
# Pi_sim <- output_piem_sim$last.iteration
#
# # following are the true proportions in the data: (see help(hmat_sim) for data generation details.)
# f <- c(0.895,0.005,0.005,0.02,0.005,0.02,0.02,0.03)
#
# # the estimation vs the true proportions:
# cbind(round(Pi_sim,6),f)
# ## End(Not run)
Run the code above in your browser using DataLab