cptCovariance-methods: cptCovariance Methods

Description Usage Arguments Functions Examples

Description

Methods for objects with S4 class cptCovariance

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## S4 method for signature 'cptCovariance'
summary(object)

## S4 method for signature 'cptCovariance'
show(object)

## S4 method for signature 'cptCovariance'
plot(object, x = c(), y = c())

## S4 method for signature 'cptCovariance'
covEst(object)

## S4 method for signature 'cptCovariance'
subspaceEst(object)

Arguments

object

An object of S4 class cptCovariance

x

x

y

y

Functions

Examples

 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
# Create new cptCovariance object
out <- new('cptCovariance',
     dataset=matrix(rnorm(300),ncol=3),
		cpts=c(50,100),
		method='Ratio',
		numCpts='AMOC',
		cptsSig=data.frame('cpts'=50,'T'=33.3,'thresholdValue'=30,significant=TRUE),
		threshold='Manual',
		thresholdValue=30,
		msl=20)

# Summarize cptCovariance object
summary(out)

# Show cptCovariance object
show(out)

# Plot cptCovariance object
plot(out)

# Show significant changepoints
cptsSig(out)

# Estimate covariance matrices in each segment
covEst(out)

# Create new cptCovariance object with subspace method
out2 <- new('cptCovariance',
     dataset=matrix(rnorm(300),ncol=3),
		cpts=c(50,100),
		method='Subspace',
		numCpts='AMOC',
		cptsSig=data.frame('cpts'=50,'T'=33.3,'thresholdValue'=30,significant=TRUE),
		threshold='Manual',
		thresholdValue=30,
		msl=20,
		subspaceDim=1)

# Estimate subspace in each segment
subspaceEst(out2)

grundy95/changepoint.cov documentation built on April 5, 2021, 6:21 p.m.