t_test_mi: t-test() on multiply-imputed data (accepts survey weights)

View source: R/stat_tests.R

t_test_miR Documentation

t-test() on multiply-imputed data (accepts survey weights)

Description

This runs t-test (based on lm(), therefore assuming equal variances) on multiple imputations, with the ability to take into account survey weights.

Usage

t_test_mi(mi_list, dv, groups, weights = NULL)

Arguments

mi_list

A list of dataframes, each consisting of a multiply imputed dataset

dv

The dependent variable for the t.test (must be in mi_list)

groups

The grouping variable (must have only two values, be in mi_list)

weights

The variable containing survey weights, must be in mi_list

Value

A one-row tibble containing the result of the t-test


LukasWallrich/rNuggets documentation built on Aug. 26, 2022, 11:03 a.m.