NestedCategBayesImpute: Modeling and Generating Synthetic Versions of Nested Categorical Data in the Presence of Impossible Combinations

Share:

This tool set provides a set of functions to fit the nested Dirichlet process mixture of products of multinomial distributions (NDPMPM) model for nested categorical household data in the presence of impossible combinations. It has direct applications in generating synthetic nested household data.

Author
Quanli Wang, Olanrewaju Akande, Jingchen Hu, Jerry Reiter and Andres Barrientos
Date of publication
2016-11-17 08:27:32
Maintainer
Quanli Wang <quanli@stat.duke.edu>
License
GPL (>= 3)
Version
1.0.0
URLs

View on CRAN

Man pages

checkconstraints
Checking a data matrix of households for the...
checkconstraints_HHhead_at_group_level
Checking a data matrix of households for the...
GetImpossibleHouseholds
Generate the desired number of impossible households required...
groupcount
Generate 2D count table for two integer-valued vectors.
groupcount1D
Generate histogram count for an integer-valued vector.
households2individuals
Convert a household data matrix to the corresponding...
initData
Initialize the input data structure.
initOutput
Set the output structure for saving posterior samples of...
initParameters
Initialize the model parameters for the MCMC.
RunModel
Run the mcmc sampler for the model.
sampleG
Update household (group) level latent class indexes.
samplehouseholds
Rcpp implementation for sampling household data without...
samplehouseholds_HHhead_at_group_level
Rcpp implementation for sampling household data without...
sampleM
Update individual level latent class indexes.
UpdateAlpha
Update alpha.
UpdateBeta
Update beta.
UpdateLambda
Update lambda.
UpdateLambdaWeighted
Update lambda.
UpdateOmega
Update omega and v.
UpdateOmegaWeighted
Update omega and v.
UpdatePhi
Update phi.
UpdatePhiWeighted
Update phi.
UpdatePi
Update pi and u.
UpdatePiWeighted
Update pi and u.

Files in this package

NestedCategBayesImpute
NestedCategBayesImpute/inst
NestedCategBayesImpute/inst/extdata
NestedCategBayesImpute/inst/extdata/origdata_newFormat.txt
NestedCategBayesImpute/inst/extdata/origdata_oldFormat.txt
NestedCategBayesImpute/src
NestedCategBayesImpute/src/samplehouseholds.h
NestedCategBayesImpute/src/checkconstraints.h
NestedCategBayesImpute/src/groupcount.cpp
NestedCategBayesImpute/src/checkconstraints.cpp
NestedCategBayesImpute/src/samplehouseholds_imp.cpp
NestedCategBayesImpute/src/checkconstraints_imp.cpp
NestedCategBayesImpute/src/sampleM.cpp
NestedCategBayesImpute/src/sampleW.h
NestedCategBayesImpute/src/sampleW.cpp
NestedCategBayesImpute/src/sampleG.cpp
NestedCategBayesImpute/src/samplehouseholds.cpp
NestedCategBayesImpute/src/RcppExports.cpp
NestedCategBayesImpute/NAMESPACE
NestedCategBayesImpute/demo
NestedCategBayesImpute/demo/example.R
NestedCategBayesImpute/demo/00Index
NestedCategBayesImpute/R
NestedCategBayesImpute/R/init.R
NestedCategBayesImpute/R/RcppExports.R
NestedCategBayesImpute/R/RunModel.R
NestedCategBayesImpute/R/samplers.R
NestedCategBayesImpute/R/ImpossibleHouseholds.R
NestedCategBayesImpute/MD5
NestedCategBayesImpute/DESCRIPTION
NestedCategBayesImpute/man
NestedCategBayesImpute/man/households2individuals.Rd
NestedCategBayesImpute/man/samplehouseholds.Rd
NestedCategBayesImpute/man/initData.Rd
NestedCategBayesImpute/man/UpdateBeta.Rd
NestedCategBayesImpute/man/UpdateLambdaWeighted.Rd
NestedCategBayesImpute/man/UpdateOmega.Rd
NestedCategBayesImpute/man/UpdateOmegaWeighted.Rd
NestedCategBayesImpute/man/initParameters.Rd
NestedCategBayesImpute/man/sampleM.Rd
NestedCategBayesImpute/man/checkconstraints_HHhead_at_group_level.Rd
NestedCategBayesImpute/man/checkconstraints.Rd
NestedCategBayesImpute/man/groupcount.Rd
NestedCategBayesImpute/man/UpdateAlpha.Rd
NestedCategBayesImpute/man/UpdateLambda.Rd
NestedCategBayesImpute/man/UpdatePiWeighted.Rd
NestedCategBayesImpute/man/sampleG.Rd
NestedCategBayesImpute/man/groupcount1D.Rd
NestedCategBayesImpute/man/initOutput.Rd
NestedCategBayesImpute/man/UpdatePhi.Rd
NestedCategBayesImpute/man/samplehouseholds_HHhead_at_group_level.Rd
NestedCategBayesImpute/man/GetImpossibleHouseholds.Rd
NestedCategBayesImpute/man/UpdatePi.Rd
NestedCategBayesImpute/man/RunModel.Rd
NestedCategBayesImpute/man/UpdatePhiWeighted.Rd