initData {NestedCategBayesImpute} | R Documentation |
Initialize the input data structure.
Description
Initialize the input data structure.
Usage
initData(md)
Arguments
md |
A list holds all the input data with optional missing data info. |
Value
A list object including all the necessary data variables needed by the sampler.
origdata |
Original data. |
n_i |
Vector containing the number of individuals in each household in the data. |
n |
Number of households in the data |
HHdataorigT |
The transposed household level data – each column now represents each household. |
HHserial |
Vector containing the household index for each individual in the data. |
n_individuals |
The total number of individuals N across all n households in the input data. |
n_individuals_real |
The real total number of individuals N across all n households. The is the same as n_individuals if the household head hasn't been moved to the household level and different otherwise. |
p |
Number of individual-level variables. |
d |
Vector containing the number of levels for each of the |
dataT |
The transposed individual level data – each column now represents each individual. |
maxd |
The max value in |
n_star_h |
Vector containing the number of observed households for the different household sizes in the original data. |
Author(s)
Quanli Wang