plotCovariance: Plot covariance

Description Usage Arguments Value Examples

View source: R/plotcovariance.R

Description

Plot covariance between points given specified method

Usage

1
plotCovariance(method, params, nyears = 10, return.values = F)

Arguments

method

string to indicate type of method from which to simulate. Options are: "ar", "arma", "splines", "gp".

params

list of parameters needed to simulate from method specified. Each method takes different parameter arguments. See documentation for each process for more information.

  • AR: specify nyears, rho, sigma

  • ARMA: specify nyears, phi, theta, sigma.ar

  • Splines: specify x.i, order

  • GP: specify cov.method (sqexp or matern), nyears, tau, l

nyears

length of period to visualize covariance structure

return.values

return values instead of plot; default is set to F

Value

A plot of covariance between points. Covariance is calculated relative to x = 0 and standardised so that variance = 1 (so should be called correlation!).

Examples

1
plotCovariance(method = "splines", params = list(sigma = 0.5, sigma.alpha = 0.5, order = 1))

MJAlexander/distortr documentation built on July 17, 2020, 4:06 p.m.