probOutlier: Probability of being an outlier given the Bayesian quantile...

View source: R/probOutlier.R

probOutlierR Documentation

Probability of being an outlier given the Bayesian quantile regression fits.

Description

Returns the probability that each observation is an outlier given the Bayesian quantile regression fits.

Usage

probOutlier(
  object,
  burnin = 50,
  plotProb = TRUE,
  scales.free = FALSE,
  all.obs = TRUE,
  obs
)

Arguments

object

This is an object of the class "bqr", produced by a call to the bayesQR function.

burnin

Initial part of the chain, which is to be discarded. Default value is 50.

plotProb

If TRUE, the function prints the plot with all probabilities. Default is set to TRUE.

scales.free

If FALSE, the default, then all plots will use the same y scale. If TRUE, for each tau the plot will use the best possible scale in order to visualize the probability information for all observations.

all.obs

if TRUE, calculates KL divergence for all observations

obs

if all.obs is FALSE, specifies the observation to calculate the KL divergence.

Value

Prints a plot of the posterior probability of being an outlier for all observations and returns a data.frame with all values of the probabilities.


brsantos/baquantreg documentation built on Feb. 8, 2023, 8:18 a.m.