pw_tstat: Pairwise (many-to-one) t-statistics

Description Usage Arguments Details Value Author(s)

Description

Matrix computation of all pairwise t-statistics between (treatment) groups and one control group.

Usage

1
pw_tstat(x, g, control = 0)

Arguments

x

either a numeric vector or column matrix of outcomes (see Details)

g

group assignments (see Details)

control

Label that defines the control group

Details

Group assignments can be passed via g using either a numeric/integer factor, vector, or matrix. All elements with values below or equal to zero are treated as belonging to the control, all above as belonging to the treatment group.

If either x or g are passed as matrices test statistics each computed for each column of outcomes or treatment assignments. Passing both as matrices does not work!

Value

numeric vector of test statistics

Author(s)

Florian Klinglmueller


floatofmath/resamplingMCP documentation built on May 16, 2019, 1:21 p.m.