niceout: Elegant tables for regressions on multiply imputed data

niceoutR Documentation

Elegant tables for regressions on multiply imputed data

Description

Outputs nicely-formatted regression tables in html format, containing standardised and unstandardised regression coefficients with SEs, p values, t statistics, F statistics, R-squared and R-squared change for regression models.

Usage

niceout(
  mids,
  filename,
  outcome,
  predictors1,
  predictors2,
  predictors3 = NULL,
  filepath = NULL
)

Arguments

mids

mids object, a multiply-imputed dataset generated from mice

filename

character vector, specify the name of the file (without extension)

outcome

character vector, specifying the name of the response variable in the dataset

predictors1

character vector, predictors in Step 1 of regression

predictors2

character vector, predictors in Step 2 of regression

predictors3

(OPTIONAL) character vector, predictors in Step 3 of regression

filepath

string, specify full path to output directory in the format "~/directory/subdirectory/"

Examples

mids <- mice::mice(mice::nhanes, m=5, maxit=1)

niceout(mids,"Hierarchical_regression_1",
outcome = "hyp",
predictors1 = c("age", "bmi"),
predictors2 = c("age", "bmi","chl"),
filepath = "D:/Desktop/")

tim9800/bmemTOOLS documentation built on June 1, 2025, 10:08 p.m.