cohens_d: Cohen's D

View source: R/stats.R

cohens_dR Documentation

Cohen's D

Description

Computes Cohen's D for each feature. If time and ID are supplied, change between two time points is computed for each subject, and Cohen's d is computed from the changes

Usage

cohens_d(object, group = group_col(object), id = NULL, time = NULL)

Arguments

object

a MetaboSet object

group

character, name of the group column

id

character, name of the subject ID column

time

character, name of the time column

Value

data frame with Cohen's d for each feature

Examples

d_results <- cohens_d(drop_qcs(example_set))
d_results_time <- cohens_d(drop_qcs(example_set),
  time = "Time", id = "Subject_ID"
)


antonvsdata/notame documentation built on Sept. 14, 2024, 11:09 p.m.