mice_df: Create a descriptive statistics table from imputed data.

View source: R/mice_df.R

mice_dfR Documentation

Create a descriptive statistics table from imputed data.

Description

This takes data from a mids object and turns the variables you specify into table of descriptive statistics This is useful when handling imputed data.

Usage

mice_df(imp, vs, title, nm)

Arguments

imp

A mids object.

vs

Character vector, variables from imp. E.g., c("bmi", "chl").

title

Character vector, title of your correlation matrix. Optional.

nm

Character vector, preferred variable names. E.g., c("BMI", "Cholesterol"). Optional.

Details

The output will be a flextable formatted in APA style.


jrcalabrese/tablecloth documentation built on Aug. 21, 2022, 8:40 p.m.