Learn R Programming

uGMAR (version 3.1.0)

checkPM: Check p and M are correctly set

Description

checkPM checks that the arguments p and M are correctly set.

Usage

checkPM(p, M, model = c("GMAR", "StMAR", "G-StMAR"))

Arguments

p

a positive integer specifying the order of AR coefficients.

M
For GMAR and StMAR models:

a positive integer specifying the number of mixture components.

For G-StMAR model:

a size (2x1) vector specifying the number of GMAR-type components M1 in the first element and StMAR-type components M2 in the second. The total number of mixture components is M=M1+M2.

model

is "GMAR", "StMAR" or "G-StMAR" model considered? In G-StMAR model the first M1 components are GMAR-type and the rest M2 components are StMAR-type.

Value

Doesn't return anything, but throws an informative error if something is wrong.