uniform_outlier_ombc {outlierMBC} | R Documentation |
Produce a single sample that passes the outlier checks.
Description
This function calls uniform_sample_lcwm to sample a proposed outlier and then calls test_outlier_ombc to check if it satisfies the required criteria.
Usage
uniform_outlier_ombc(
outlier_type,
mu,
sigma,
beta,
error_sd,
g,
uniform_spans,
prob_range
)
Arguments
outlier_type |
Character string governing whether the outliers are
outlying with respect to the explanatory variable only
( |
mu |
List of component mean vectors. |
sigma |
List of component covariance matrices. |
beta |
List of component regression coefficient vectors. |
error_sd |
Vector of component regression error standard deivations. |
g |
Component index. |
uniform_spans |
Covariate and response error spans. |
prob_range |
Values for uniform sample rejection. |
Value
uniform_outlier_ombc
returns a simulated outlier as a vector containing its
covariate values, response value, and its component label 0
. This vector's
final element is the probability of sampling a more extreme Gaussian point
from this outlier's associated component.