powered by
Orders the model and changes it to the correct format
orderModel(models)
A vector of string that specifies the models
string
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").
models
This function is used in gen.lts()
gen.lts()
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
Run the code above in your browser using DataLab