dot-get_smd: (For maintainer) Compute (standardized) mean differences

.get_smd.medR Documentation

(For maintainer) Compute (standardized) mean differences

Description

Internal functions called by .plot_balance. functions to compute (standardized) mean differences to be plotted.

Usage

.get_smd.med(w.dat, c.vars, m.vars, c.std, m.std)

.get_smd.ipw(w.dat, vars, standardize)

.get_smd.odds(w.dat, vars, standardize)

.get_smd.psYpred(w.dat, c.vars, c.std)

Arguments

w.dat

Dataset for pseudo samples, already cleaned and dummy coded.

c.vars

Names of covariates, checked and dummied.

m.vars

Names of mediators, checked and dummied.

c.std

Covariates to be standardized, already checked.

m.std

Mediators to be standardized, already checked.

cm.vars

Names of covariates and mediators, checked and dummied.

cm.vars.std

Covariates and mediators to be standardized, already checked.

Value

A data frame containing the (standardized) mean differences.


trangnguyen74/tnMediation documentation built on May 3, 2023, 6:58 a.m.