Learn R Programming

gmwm (version 2.0.0)

update.gmwm: Update GMWM object for sensor, ARMA, SSM, and Robust

Description

GMM object

Usage

"update"(object, model, ...)

Arguments

object
A gmwm object.
model
A ts.model object containing one of the allowed models
...
Additional parameters (not used)

Value

A gmwm object with the structure:
estimate
Estimated Parameters Values from the GMWM Procedure
init.guess
Initial Starting Values given to the Optimization Algorithm
wv.empir
The data's empirical wavelet variance
ci.low
Lower Confidence Interval
ci.high
Upper Confidence Interval
orgV
Original V matrix
V
Updated V matrix (if bootstrapped)
omega
The V matrix inversed
obj.fun
Value of the objective function at Estimated Parameter Values
theo
Summed Theoretical Wavelet Variance
decomp.theo
Decomposed Theoretical Wavelet Variance by Process
scales
Scales of the GMWM Object
robust
Indicates if parameter estimation was done under robust or classical
eff
Level of efficiency of robust estimation
model.type
Models being guessed
compute.v
Type of V matrix computation
augmented
Indicates moments have been augmented
alpha
Alpha level used to generate confidence intervals
expect.diff
Mean of the First Difference of the Signal
N
Length of the Signal
G
Number of Guesses Performed
H
Number of Bootstrap replications
K
Number of V matrix bootstraps
model
ts.model supplied to gmwm
model.hat
A new value of ts.model object supplied to gmwm
starting
Indicates whether the procedure used the initial guessing approach
seed
Randomization seed used to generate the guessing values
freq
Frequency of data

Details

This function is under work. Some of the features are active. Others... Not so much.

Examples

Run this code
# AR
set.seed(1336)
n = 200
exact.model = AR1(phi=.99, sigma2 = 0.01) + WN(sigma2=1)
data = gen.gts(exact.model)

# Create an initial model that is not accurate
bad.model = gmwm(AR1(), data = data)

# Models can contain specific parameters e.g.
updated.model = update(bad.model, exact.model)

# Or...
updated.model.guided = update(bad.model, AR1()+AR1())

Run the code above in your browser using DataLab