Imputation_Method: The Imputated Income Values Simulator

Description Usage Arguments Value References Examples

Description

A function to populate imputed income values by the standard, rank-based and Bayesian methods.

Usage

1
2
Imputation_Method(df, par = NULL, standard = 1, rank_based = 1,
  Bayesian = 1, select = NA, prior.grid = 50, rtol = 1e-11)

Arguments

df

The longitudinal file.

par

The GB2 distribution parameters. If not provided, the parameters will be estimated based df.

standard

Flag for generating imputed values by the standard method in the output.

rank_based

Flag for generating imputed values by the rank_based method in the output.

Bayesian

Flag for generating imputed values by the Bayesian method in the output.

select

How many waves are used to estimate prior distribution. If NA, then all waves will be used.

prior.grid

Controls the number of bins in WGLVmix.

rtol

The relative tolerance for dual gap convergence criterion used in KWDual.

Value

A data.frame contains the input with extra columns shown the imputed income values.

References

Tan, Li (2017), Imputing Top-Coded Income Data in Longitudinal Surveys, Working Papers. (link)

Examples

1
Imputation_Method(df = SIPP1996Analytic, par = Example_GB2_param, standard = 1, rank_based = 1, Bayesian = 1, select = NA, prior.grid = 50, rtol = 1e-11)

ltanecon/BayesImp documentation built on May 4, 2019, 4:22 p.m.