orderModel: Order the Model

Description Usage Arguments Details Examples

Description

Orders the model and changes it to the correct format

Usage

1
orderModel(models)

Arguments

models

A vector of string that specifies the models

Details

If the models are c("AR1", "WN", "AR1", "WN", "AR1+WN+AR1+WN"), it will be converted to c("AR1-1", "WN-1", "AR1-2", "WN-2", "AR1+WN+AR1+WN").

This function is used in gen.lts()

Examples

1
2
3
4
5
6
7
models = c("AR1", "WN", "AR1", "WN", "AR1+WN+AR1+WN")
new.models = orderModel(models)
new.models

models = c('AR1', 'QN', 'WN', 'AR1+QN+WN')
new.models = orderModel(models)
new.models

gmwm documentation built on April 14, 2017, 4:38 p.m.