zstat: z-scores

Description Usage Arguments Details Value Author(s)

Description

Matrix computation of z-scores

Usage

1
zstat(x, g, sigma = 1, one_sample = FALSE)

Arguments

x

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

g

group assignments (see Details)

one_sample

Whether a one or two sample test should be performed

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.