Description Usage Arguments Details Value Note Author(s)

View source: R/mice.impute.norm.R

This function computes least squares estimates, variance/covariance matrices, residuals and degrees of freedom according to ridge regression, QR decomposition or Singular Value Decomposition. This function is internally called by .norm.draw(), but can be called by any user-specified imputation function.

1 |

`x` |
Matrix ( |

`y` |
Incomplete data vector of length |

`ls.meth` |
the method to use for obtaining the least squares estimates. By default parameters are drawn by means of QR decomposition. |

`ridge` |
A small numerical value specifying the size of the ridge used.
The default value |

`...` |
Other named arguments. |

When calculating the inverse of the crossproduct of the predictor matrix, problems may arise. For example, taking the inverse is not possible when the predictor matrix is rank deficient, or when the estimation problem is computationally singular. This function detects such error cases and automatically falls back to adding a ridge penalty to the diagonal of the crossproduct to allow for proper calculation of the inverse.

A `list`

containing components `c`

(least squares estimate),
`r`

(residuals), `v`

(variance/covariance matrix) and `df`

(degrees of freedom).

This functions adds a star to variable names in the mice iteration
history to signal that a ridge penalty was added. In that case, it
also adds an entry to `loggedEvents`

.

Gerko Vink, 2018

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.