cohensd: Cohen's D

View source: R/aldex-summary.R

cohensdR Documentation

Cohen's D

Description

Function to compute cohensd on the results provided by the aldex function

Usage

cohensd(m, var)

Arguments

m

the output of a call to aldex

var

if aldex was called with X being a pre-computed model matrix, this var should be an integer corresponding to a binary covariate indicating the desired effect size to calculate (an effect size between two groups indicated by the binary covariate). For example, if the third covariate in the model is an indicator denoting health (0) and disease (1) then set var=3. In contrast, if X was a formula (in which case the data argument should have been specified) then var can be set to the unquoted or quoted name of the binary condition variable (e.g., var=condition or var="condition").

Details

WARNING: this function is experimental and requires users read the documentation fully.

Value

A (D x nsample)-matrix of Cohen's d statistics for the variable of interest.

Author(s)

Justin Silverman


ALDEx3 documentation built on Oct. 20, 2026, 1:07 a.m.