remove.data: Remove an undesirable observation.

Description Usage Arguments Value Author(s) Examples

View source: R/remove.data.R

Description

This function removes an undesirable data that might be out of control in you data set. It is used at Hotelling T2 control charts for phase I.

Usage

1
remove.data(datum, i)

Arguments

datum

The data set. Should be an array.

i

The index in the matrix of the data to be removed.

Value

Return the new data set without the observation that was removed.

Author(s)

Daniela R. Recchia, Emanuel P. Barbosa

Examples

1
2
3
4
5
mu <- c(5.682, 88.22)
Sigma <- symMatrix(c(3.770, -5.495, 13.53), 2)
datum <- data.1(20, 10, mu, Sigma)
# Removing the observatiob 13 from the data set "datum" and updating it:
datum <- remove.data(datum, 13)

IQCC documentation built on May 1, 2019, 10:58 p.m.