insightsengineering / insightsengineering/teal.modules.general

mice package in missing data module

Open
#49 2 comments 0 reactions 0 assignees View on GitHub
research
Dominant language
R
Stars
16
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Simplify calculations using `mice` package

Please have a look at below:
![image](https://user-images.githubusercontent.com/12943682/128349592-d08a442a-2e9a-4cee-973d-873615617cbf.png)

Within one function call we got the data for the first and second plot.
![image](https://user-images.githubusercontent.com/12943682/128349616-ff79efec-316c-48c4-bf30-286faefc34c7.png)
![image](https://user-images.githubusercontent.com/12943682/128349642-5ccdd161-1a8d-4511-9661-eb1229aeb211.png)

Adding this might simplify data transformations done in this module.

Please note special case of panel data (e.g. ADRS) where we want to have also count of missing in cols per patients in which we have `anyNA()` function. Thus, some transformations might be still needed.

Provenance:
```
Creator: pawelru
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.