Description Usage Arguments Value Author(s) See Also

View source: R/ampute.default.R

Defines the default weights matrix for the multivariate amputation function
`ampute`

.

1 | ```
ampute.default.weights(patterns, mech)
``` |

`patterns` |
A matrix of size #patterns by #variables where |

`mech` |
A string specifying the missingness mechanism. |

A matrix of size #patterns by #variables containing the weights that
will be used to calculate the weighted sum scores. Equal weights are given to
all variables. When mechanism is MAR, variables that will be amputed will be
weighted with `0`

. If it is MNAR, variables that will be observed
will be weighted with `0`

. If mechanism is MCAR, the weights matrix will
not be used. A default MAR matrix will be returned.

Rianne Schouten, 2016

`ampute`

, `ampute.default.patterns`

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.