test_outlier_ombc {outlierMBC}R Documentation

Check if a new sample satisfies the outlier criteria.

Description

This function checks whether a given sample is an acceptable outlier with respect to prob_range and also computes the probability of sampling a more extreme point from component g.

Usage

test_outlier_ombc(
  outlier_type,
  mu,
  sigma,
  beta,
  error_sd,
  x_sample,
  y_sample,
  prob_range,
  g
)

Arguments

outlier_type

Character string governing whether the outliers are outlying with respect to the explanatory variable only ("x_only"), the response variable only ("y_only"), or both ("x_and_y"). "x_and_y" is the default value.

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.

x_sample

New covariate sample.

y_sample

New response sample.

prob_range

Values for uniform sample rejection.

g

Component number.

Value

test_outlier_ombc returns a vector consisting of a logical value indicating whether the new sample satisfies the outlier checks, and a numeric value giving the probability of sampling a more extreme point from component g.


[Package outlierMBC version 0.0.1 Index]