Learn R Programming

wsyn (version 1.0.4)

wlmfit: Fits a wavelet linear model

Description

Stripped down internal function for doing the fitting

Usage

wlmfit(wts, norm)

Arguments

wts

List of normalized transforms, normalized as specified in norm. Each entry a locations x time x timescales array of transforms. The first is the response variable, others are the predictors.

norm

The normalization that was used. One of "none", "powall", "powind". See details.

Value

wlmfit returns a list with these elements:

coefs

Model coefficients

modval

The right had side of the model

coher

Appropriately normalized coherence of the model and response variable

Details

Only norm="powall" works now, other options throw an error.

References

Sheppard, LW et al. (2019) Synchrony is more than its top-down and climatic parts: interacting Moran effects on phytoplankton in British seas. Plos Computational Biology 15, e1006744. doi: 10.1371/journal.pcbi.1006744