wvar {wv} | R Documentation |
Wavelet Variance
Description
Calculates the (MO)DWT wavelet variance
Usage
wvar(x, ...)
## S3 method for class 'lts'
wvar(
x,
decomp = "modwt",
filter = "haar",
nlevels = NULL,
alpha = 0.05,
robust = FALSE,
eff = 0.6,
to.unit = NULL,
...
)
## S3 method for class 'gts'
wvar(
x,
decomp = "modwt",
filter = "haar",
nlevels = NULL,
alpha = 0.05,
robust = FALSE,
eff = 0.6,
to.unit = NULL,
...
)
## S3 method for class 'ts'
wvar(
x,
decomp = "modwt",
filter = "haar",
nlevels = NULL,
alpha = 0.05,
robust = FALSE,
eff = 0.6,
to.unit = NULL,
...
)
## S3 method for class 'imu'
wvar(
x,
decomp = "modwt",
filter = "haar",
nlevels = NULL,
alpha = 0.05,
robust = FALSE,
eff = 0.6,
to.unit = NULL,
...
)
## Default S3 method:
wvar(
x,
decomp = "modwt",
filter = "haar",
nlevels = NULL,
alpha = 0.05,
robust = FALSE,
eff = 0.6,
freq = 1,
from.unit = NULL,
to.unit = NULL,
...
)
Arguments
x |
A |
... |
Further arguments passed to or from other methods. |
decomp |
A |
filter |
A |
nlevels |
An |
alpha |
A |
robust |
A |
eff |
A |
to.unit |
A |
freq |
A |
from.unit |
A |
Details
The default value of nlevels
will be set to \left\lfloor {{{\log }_2}\left( {length\left( x \right)} \right)} \right\rfloor
, unless otherwise specified.
Value
A list
with the structure:
"variance": Wavelet Variance
"ci_low": Lower CI
"ci_high": Upper CI
"robust": Robust active
"eff": Efficiency level for Robust calculation
"alpha": p value used for CI
"unit": String representation of the unit
Author(s)
James Balamuta, Justin Lee and Stephane Guerrier
Examples
set.seed(999)
x = rnorm(100)
# Default
wvar(x)
# Robust
wvar(x, robust = TRUE, eff=0.3)
# Classical
wvar(x, robust = FALSE, eff=0.3)
# 90% Confidence Interval
wvar(x, alpha = 0.10)