Learn R Programming

astsa (version 1.16)

stoch.reg: Frequency Domain Stochastic Regression

Description

Performs frequency domain stochastic regression discussed in Chapter 7.

Usage

stoch.reg(data, cols.full, cols.red, alpha, L, M, plot.which)

Value

power.full

spectrum under the full model

power.red

spectrum under the reduced model

Betahat

regression parameter estimates

eF

pointwise (by frequency) F-tests

coh

coherency

Arguments

data

data matrix

cols.full

specify columns of data matrix that are in the full model

cols.red

specify columns of data matrix that are in the reduced model (use NULL if there are no inputs in the reduced model)

alpha

test size

L

smoothing - see spans in spec.pgram

M

number of points in the discretization of the integral

plot.which

coh or F.stat, to plot either the squared-coherencies or the F-statistics, respectively

Author

D.S. Stoffer

References

You can find demonstrations of astsa capabilities at FUN WITH ASTSA.

The most recent version of the package can be found at https://github.com/nickpoison/astsa/.

In addition, the News and ChangeLog files are at https://github.com/nickpoison/astsa/blob/master/NEWS.md.

The webpages for the texts are https://www.stat.pitt.edu/stoffer/tsa4/ and https://www.stat.pitt.edu/stoffer/tsda/.