Description Usage Arguments Value Author(s) See Also

View source: R/mice.impute.2l.contextual.norm.R

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.

1 2 |

`y` |
Incomplete data vector of length |

`ry` |
Vector of missing data pattern ( |

`x` |
Matrix ( |

`type` |
Type of predictor variables. |

`ridge` |
Ridge parameter in the diagonal of |

`imputationWeights` |
Optional vector of sample weights |

`interactions` |
Vector of variable names used for creating interactions |

`quadratics` |
Vector of variable names used for creating quadratic terms |

`...` |
Further arguments to be passed |

A vector of length `nmis=sum(!ry)`

with imputed values.

Alexander Robitzsch

For examples see `mice.impute.2l.contextual.pmm`

.

miceadds documentation built on Aug. 25, 2017, 1:03 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.