marginal_compare_all_syn function

Plot estimated marginal probabilities from observed data vs synthetic datasets

Plot estimated marginal probabilities from observed data vs synthetic datasets

marginal_compare_all_syn(obsdata, syndata, vars)

Arguments

  • obsdata: the observed data
  • syndata: the list of m imputed datasets
  • vars: the variable of interest

Returns

  • Plot: the barplot

  • Comparison: a table of marginal probabilies from observed data vs imputed datasets

  • Maintainer: Jingchen Hu
  • License: GPL (>= 3)
  • Last published: 2022-10-03

Useful links