Learn R Programming

ALDEx3 (version 1.0.2)

cohensd: Cohen's D

Description

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

Usage

cohensd(m, var)

Value

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

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 indicateing 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 name of the binary condition variable (e.g., var=condition).

Author

Justin Silverman

Details

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