# mads-class: Multivariate amputed data set ('mads') In mice: Multivariate Imputation by Chained Equations

## Description

The `mads` object contains an amputed data set. The `mads` object is generated by the `ampute` function. The `mads` class of objects has methods for the following generic functions: `print`, `summary`, `bwplot` and `xyplot`.

## Contents

`call`:

The function call.

`prop`:

Proportion of cases with missing values. Note: even when the proportion is entered as the proportion of missing cells (when `bycases == TRUE`), this object contains the proportion of missing cases.

`patterns`:

A data frame of size #patterns by #variables where `0` indicates a variable has missing values and `1` indicates a variable remains complete.

`freq`:

A vector of length #patterns containing the relative frequency with which the patterns occur. For example, if the vector is `c(0.4, 0.4, 0.2)`, this means that of all cases with missing values, 40 percent is candidate for pattern 1, 40 percent for pattern 2 and 20 percent for pattern 3. The vector sums to 1.

`mech`:

A string specifying the missingness mechanism, either `"MCAR"`, `"MAR"` or `"MNAR"`.

`weights`:

A data frame of size #patterns by #variables. It contains the weights that were used to calculate the weighted sum scores. The weights may differ between patterns and between variables.

`cont`:

Logical, whether probabilities are based on continuous logit functions or on discrete odds distributions.

`type`:

A vector of strings containing the type of missingness for each pattern. Either `"LEFT"`, `"MID"`, `"TAIL"` or `"RIGHT"`. The first type refers to the first pattern, the second type to the second pattern, etc.

`odds`:

A matrix where #patterns defines the #rows. Each row contains the odds of being missing for the corresponding pattern. The amount of odds values defines in how many quantiles the sum scores were divided. The values are relative probabilities: a quantile with odds value 4 will have a probability of being missing that is four times higher than a quantile with odds 1. The #quantiles may differ between patterns, NA is used for cells remaining empty.

`amp`:

A data frame containing the input data with NAs for the amputed values.

`cand`:

A vector that contains the pattern number for each case. A value between 1 and #patterns is given. For example, a case with value 2 is candidate for missing data pattern 2.

`scores`:

A list containing vectors with weighted sum scores of the candidates. The first vector refers to the candidates of the first pattern, the second vector refers to the candidates of the second pattern, etc. The length of the vectors differ because the number of candidates is different for each pattern.

`data`:

The complete data set that was entered in `ampute`.

## Note

Many of the functions of the `mice` package do not use the S4 class definitions, and instead rely on the S3 list equivalent `oldClass(obj) <- "mads"`.

## Author(s)

Rianne Schouten, 2016

`ampute`, Vignette titled "Multivariate Amputation using Ampute".
{"ft_lang_label":"__label__en","ft_lang_prob":0.84966654,"math_prob":0.9441151,"size":2983,"snap":"2021-43-2021-49","text_gpt3_token_len":696,"char_repetition_ratio":0.1389728,"word_repetition_ratio":0.028169014,"special_character_ratio":0.21656051,"punctuation_ratio":0.1368421,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.99106175,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2021-10-17T12:53:57Z\",\"WARC-Record-ID\":\"<urn:uuid:493ef6c0-5b80-4fac-bb88-14f16c96fb88>\",\"Content-Length\":\"44320\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:d43081ac-b075-45b9-88aa-3d2e7cf69269>\",\"WARC-Concurrent-To\":\"<urn:uuid:a0cc8c03-3079-4a2b-b213-f6e3ad84e9c6>\",\"WARC-IP-Address\":\"51.81.83.12\",\"WARC-Target-URI\":\"https://rdrr.io/cran/mice/man/mads-class.html\",\"WARC-Payload-Digest\":\"sha1:XJMP47E5GOIISJBZQQCFMLHQXYOOTUIG\",\"WARC-Block-Digest\":\"sha1:DIUQVYDHCIOKO47ZW4ZKC6EKY3XIAQKO\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2021/CC-MAIN-2021-43/CC-MAIN-2021-43_segments_1634323585177.11_warc_CC-MAIN-20211017113503-20211017143503-00603.warc.gz\"}"}