File: mscale.Rd

package info (click to toggle)
r-cran-statmod 1.5.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 472 kB
  • sloc: ansic: 311; fortran: 76; sh: 4; makefile: 2
file content (44 lines) | stat: -rw-r--r-- 1,252 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
\name{mscale}
\alias{mscale}

\title{M Scale Estimation}
\description{
Robust estimation of a scale parameter using Hampel's redescending psi function.
}

\usage{
mscale(u, na.rm=FALSE)
}

\arguments{
\item{u}{numeric vector of residuals.}
\item{na.rm}{logical. Should missing values be removed?}
}

\value{numeric constant giving the estimated scale.}

\details{
Estimates a scale parameter or standard deviation using an M-estimator with 50\% breakdown.
This means the estimator is highly robust to outliers.
If the input residuals \code{u} are a normal sample, then \code{mscale(u)} should be equal to the standard deviation.
}

\author{Gordon Smyth}

\references{
Yohai, V. J. (1987). High breakdown point and high efficiency robust estimates for regression. \emph{Ann. Statist.} 15, 642-656.

Stromberg, A. J. (1993). Computation of high breakdown nonlinear regression parameters. \emph{J. Amer. Statist. Assoc.} 88, 237-244.

Smyth, G. K., and Hawkins, D. M. (2000). Robust frequency estimation using elemental sets. \emph{Journal of Computational and Graphical Statistics} 9, 196-214. 
}

%\seealso{
%\code{\link{rho.hampel}}, \code{\link{psi.hampel}}
%}

\examples{
u <- rnorm(100)
sd(u)
mscale(u)
}