Learn R Programming

cmstatr (version 0.9.3)

glance.mnr: Glance at a mnr (maximum normed residual) object

Description

Glance accepts an object of type mnr and returns a tibble::tibble() with one row of summaries.

Glance does not do any calculations: it just gathers the results in a tibble.

Usage

# S3 method for mnr
glance(x, ...)

Value

A one-row tibble::tibble() with the following columns:

  • mnr the computed MNR test statistic

  • alpha the value of alpha used for the test

  • crit the critical value given the sample size and the significance level

  • n_outliers the number of outliers found

Arguments

x

An mnr object

...

Additional arguments. Not used. Included only to match generic signature.

See Also

maximum_normed_residual()

Examples

Run this code
x <- c(rnorm(20, 100, 5), 10)
m <- maximum_normed_residual(x = x)
glance(m)

## # A tibble: 1 x 4
##     mnr alpha  crit n_outliers
##           
## 1  4.23  0.05  2.73          1

Run the code above in your browser using DataLab