.detect_boundary | R Documentation |
Detects when maximum likelihood estimates lie on or near the boundary of the parameter space for log-binomial and identity link models. Based on methods described in Donoghoe & Marschner (2018).
.detect_boundary(model, data, tolerance = 1e-06, verbose = FALSE)
model |
A fitted GLM object |
data |
The data used to fit the model |
tolerance |
Numeric tolerance for boundary detection (default: 1e-6) |
verbose |
Logical indicating whether to print diagnostic information |
A list containing:
Logical indicating if boundary was detected
Character describing the type of boundary issue
Character vector of parameters on boundary
Numeric vector with min/max fitted probabilities
Logical indicating complete/quasi-separation
Donoghoe MW, Marschner IC (2018). "logbin: An R Package for Relative Risk Regression Using the Log-Binomial Model." Journal of Statistical Software, 86(9), 1-22. doi:10.18637/jss.v086.i09
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.