outlierTest.robmixglm: Test for the presence of outliers.

View source: R/outlierTest.robmixglm.R

outlierTestR Documentation

Test for the presence of outliers.

Description

Uses the parametric bootstrap to test for the presence of outliers.

Usage

outlierTest(object,  R = 999,  cores  =  max(detectCores() %/% 2,  1))

Arguments

object

A robmixglm object with a mixture (robust) random effects distribution.

R

number of bootstrap replications

cores

Number of cores to be used in parallel. Default is one less than available.

Details

Performs a parametric bootstrap to compare models with and without outliers.

Value

An outlierTest object which is the object of class “boot” returned by the call to boot.

Author(s)

Ken Beath <ken.beath@mq.edu.au>

Examples


hospcosts.robustmix <- robmixglm(costs~adm+age+dest+ins+loglos+sex, family = "gamma", 
    data = hospcosts, cores = 1)
summary(hospcosts.robustmix)
summary(outlierTest(hospcosts.robustmix,  cores  =  1))

robmixglm documentation built on May 9, 2022, 9:08 a.m.