Description Usage Arguments Functions Examples
Methods for objects with S4 class cptCovariance
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)
|
object |
An object of S4 class |
x |
x |
y |
y |
summary,cptCovariance-method
: Summarises the cptCovariance object
show,cptCovariance-method
: Shows the cptCovariance object
plot,cptCovariance-method
: Plotting method for cptCovariance object. Returns a ggplot
object which can be manipulated as required
covEst,cptCovariance-method
: Returns covariance estimates for each segment
subspaceEst,cptCovariance-method
: Returns a basis of the subspace estimates for each segment
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.