Learn R Programming

spaMM (version 2.6.1)

is_separated: Checking for (quasi-)separation in binomial-response model.

Description

This is a convenient interface to procedures from the lpSolveAPI package, if this package is installed (otherwise a cruder approach and possibly flawed will be used), to test for (quasi-)separation. This is used by default by the fitting funtions, but can also be called explicitly by the user to check bootstrap samples (see Example in anova).

Usage

is_separated(x, y, verbose = TRUE)

Arguments

x

Design matrix for fixed effects.

y

Numeric response vector

verbose

Whether to print some messages or not.

Value

Returns a boolean; TRUE means there is (quasi-)separation.

References

Konis, K. 2007. Linear Programming Algorithms for Detecting Separated Data in Binary Logistic Regression Models. DPhil Thesis, Univ. Oxford.

See Also

See also the 'safeBinaryRegression' package.