Format_Input: Convert raw data into a 'data.frame'

Description Usage Arguments Value References

Description

This function process the raw longitudinal information and store them in a data.frame

Usage

1
2
Format_Input(id, wave, income, CPI, weight = 1, bottom.threshold = 1,
  top.threshold)

Arguments

id

Vector of a unique longitudinal identifier for a survey unit across all waves.

wave

Vector of survey data collection periods.

income

Vector of income corrsponding to id and wave.

CPI

Vector of CPI corrsponding to wave.

weight

Vector of survey weight corrsponding to id.

bottom.threshold

Vector of income bottom-coding threshold corrsponding to id and wave, or a single value.

top.threshold

Vector of income top-coding threshold corrsponding to id and wave, or a single value.

Value

A data.frame contains all nesscary information for futher processing in GB2MLE and Imputation_Method.

References

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


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