uniform_sample_lcwm {outlierMBC} | R Documentation |
Sample a potential outlier.
Description
If outlier_type = "x_and_y"
, then both the covariate values and response
error of the outlier proposed by this function will be Uniformly distributed.
If outlier_type = "x_only"
, then the covariate values will be Uniformly
distributed but the response error will be Normally distributed. If
outlier_type = "y_only"
, then the response error will be Uniformly
distributed but the covariate values will be Normally distributed.
Usage
uniform_sample_lcwm(
outlier_type,
mu_g,
sigma_g,
beta_g,
error_sd_g,
uniform_spans_g
)
Arguments
outlier_type |
Character string governing whether the outliers are
outlying with respect to the explanatory variable only
( |
mu_g |
Covariate mean vector for component |
sigma_g |
Covariate covariance matrix for component |
beta_g |
Regression coefficient vector for component |
error_sd_g |
Regression error standard deviation for component |
uniform_spans_g |
Covariate and response error ranges for component |
Value
uniform_sample_lcwm
returns a list with the following elements:
x
Vector of covariate values.
y
Response value.