File: assets-outliers.Rd

package info (click to toggle)
fassets 3011.83-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 428 kB
  • sloc: makefile: 1
file content (85 lines) | stat: -rw-r--r-- 1,619 bytes parent folder | download | duplicates (3)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
\name{assets-outliers}


\alias{assetsOutliers}


\title{Detection of Outliers in Asset Sets}


\description{
  
    Detects multivariate outliers in asset sets.
    
}
    

\usage{
assetsOutliers(x, center, cov, \dots)
}


\arguments{
  
    \item{x}{
        an object of class \code{timeSeries}. 
        }        
    \item{center}{ 
        a numeric vector, a (robust) estimate of the vector of means  
        of the multivariate time series \code{x}.
        }
    \item{cov}{
        a numeric matrix, a (robust) estimate of the covariance matrix 
        of the multivariate time series \code{x}.
        }
  
    \item{\dots}{
        optional arguments to be passed.
        }
        
}


\value{

    returns a list with the following entries:
    the estimate for the location named \code{center}, 
    the estimate for the covariance matrix named \code{cov},
    the estimate for the correlation matrix named \code{cor},  
    the quantile named \code{quantile},  
    the outliers named \code{outliers}, and 
    the time series named \code{series}.
  
}


\author{

    Moritz Gschwandtner and Peter Filzmoser for the original R code
        from package "mvoutliers", \cr
    Diethelm Wuertz for the Rmetrics port.
    
}


\references{

Wuertz, D., Chalabi, Y., Chen W., Ellis A. (2009);
    \emph{Portfolio Optimization with R/Rmetrics}, 
    Rmetrics eBook, Rmetrics Association and Finance Online, Zurich.
    
}


\examples{
## LPP -
   LPP <- as.timeSeries(data(LPP2005REC))[, 1:6]
   colnames(LPP)
   
## assetsOutliers -
   assetsOutliers(LPP, colMeans(LPP), cov(LPP))
}


\keyword{models}