desCompareIndTwoGroups: Describe and Compare Two Independent Groups

Description Usage Arguments Details Value Examples

View source: R/desCompareIndTwoGroups.R

Description

gives a easy-to-read result of two independent group description and comparison analysis.

Usage

1
desCompareIndTwoGroups(data, columns, group, ci = FALSE, n = 1000)

Arguments

data

a data.frame or tibble

columns

dependent variables needed to be test, could be either string or column index

group

the grouping variable, could be either string or column index

ci

a logical. Determine whether the ci of effect size should be calculated. Default is False

n

The number of replications to use for bootstrap to Calculate ci of effect size, default is 1000 (larger number will be very time-consuming).

Details

The comparison is based on the normality and variance quality. If the data don't meet normality, Mann-Whitney test will be conducted. Otherwise the student t-test would be conducted.

Value

a data frame that contains description and comparison results.

Examples

1
2
data("mtcars")
desCompareIndTwoGroups(data = mtcars, columns = -8, group = 8)

LeiGuo0812/lightStat documentation built on June 27, 2021, 9:17 p.m.