Learn R Programming

QWDAP (version 1.1.20)

qwdap.sws: Mode Selection by Stepwise Regression

Description

Mode selection by Stepwise Regression. The purpose of this function is to select the part modes with similar characteristics to the observed time series from the modes generated by the quantum walk. And it is based on the linear model. The core algorithm comes from StepReg(ver. 1.4.2).

Usage

qwdap.sws(real, ctqw, index, select_method, plotting)

Value

a 'QWMS' object.

Arguments

real

the real series observed.

ctqw

the 'CTQW' object.

index

the index of the data for mode selection.

select_method

choose a stepwise method.

plotting

whether to plot.

Details

The 'QWMS' object include the original time series and the modes generated by quantum walks.

Examples

Run this code
data("traffic.qw")
data("trafficflow")
res.sws <- qwdap.sws(trafficflow,traffic.qw,1,"bidirection",TRUE)

Run the code above in your browser using DataLab