https://github.com/cran/IQCC
Tip revision: 015c96430f6bddf3c9b4b20d878ceae380a023be authored by Emanuel P. Barbosa on 21 September 2009, 00:00:00 UTC
version 1.0
version 1.0
Tip revision: 015c964
removesub.Rd
\name{removesub}
\alias{removesub}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Remove an undesirable observation. }
\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 with sub-group observations for phase I.
}
\usage{
removesub(datum, i)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{datum}{ The data set. Should be an array. }
\item{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{ Daniela R. Recchia, Emanuel P. Barbosa }
\seealso{ \link{removeind} }
\examples{
mu<-c(5.682,88.22)
Sigma<-symMatrix(c(3.770,-5.495,13.53),2)
datum<-datasubI(20,10,mu,Sigma,2)
# Removing the observatiob 13 from the data set "datum" and creating a new one:
datum<-removesub(datum,13)
}