Function to compute cohensd on the results provided by the aldex function
cohensd(m, var)A (D x nsample)-matrix of Cohen's D statistics for the variable of interest
the output of a call to aldex
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).
Justin Silverman
WARNING: this function is experimental and requires users read the documetation fully.