Skip to contents

Detect if a one- or two-sample problem is specified

Usage

is_two_sample(Y, q)

Arguments

Y

A vector, matrix, data frame or NULL

q

A function or NULL.

Value

TRUE for a two-sample problem (i.e., Y non-null and q = NULL) and FALSE for a one-sample problem (i.e., Y = NULL and q non-null).