Description

This imputation method imputes a variable using linear regression
with normally distributed residuals. Including a contextual effects
means that an aggregated variable at a cluster level is included
as a further covariate.

Usage

1
2

Arguments

y

Incomplete data vector of length n

ry

Vector of missing data pattern (FALSE – missing,
TRUE – observed)

x

Matrix (n x p) of complete covariates.

type

Type of predictor variables. type=-2 refers to the cluster variable,
type=2 denotes a variable for which also a contextual effect is
included and type=1 denotes all other variables which are
included as 'ordinary' predictors.