imp_orderedcat_multi: The function for hierarchical imputation of categorical...

Description Usage Arguments Value

View source: R/hmi_imp_catordered_multi_2018-04-17.R View source: R/hmi_imp_catordered_multi_2018-02-23.R View source: R/hmi_imp_catordered_multi_2018-02-06.R View source: R/hmi_imp_catordered_multi_2017-11-13.R View source: R/hmi_imp_catordered_multi_2017-08-10.R View source: R/hmi_imp_catordered_multi_2017-01-04.R View source: R/hmi_imp_catordered_multi_2016-12-23.R View source: R/hmi_imp_catordered_multi_2016-12-06.R View source: R/hmi_imp_catordered_multi.R

Description

The function is called by the wrapper.

Usage

1
2
imp_orderedcat_multi(y_imp_multi, X_imp_multi, Z_imp_multi, clID, model_formula,
  M = 10, nitt = 3000, thin = 10, burnin = 1000)

Arguments

y_imp_multi

A Vector with the variable to impute.

X_imp_multi

A data.frame with the fixed effects variables.

Z_imp_multi

A data.frame with the random effects variables.

clID

A vector with the cluster ID.

model_formula

A formula used for the analysis model.

M

An integer defining the number of imputations that should be made.

nitt

An integer defining number of MCMC iterations (see MCMCglmm).

thin

An integer defining the thinning interval (see MCMCglmm).

burnin

An integer defining the percentage of draws from the gibbs sampler that should be discarded as burn in (see MCMCglmm).

Value

A n x M matrix. Each column is one of M imputed y-variables.


matthiasspeidel/hmi documentation built on Aug. 18, 2020, 4:37 p.m.