View source: R/factor_number.R
hl.factor.number | R Documentation |
Estimates the number of factors by minimising an information criterion over sub-samples of the data.
Currently the three information criteria proposed in Hallin and Liška (2007) (ic.op = 1, 2
or 3
)
and their variations with logarithm taken on the cost (ic.op = 4, 5
or 6
) are implemented,
with ic.op = 5
recommended as a default choice based on numerical experiments.
hl.factor.number(x, q.max = NULL, mm = NULL, center = TRUE)
x |
input time series matrix, with each row representing a variable |
q.max |
maximum number of factors; if |
mm |
a positive integer specifying the kernel bandwidth for dynamic PCA; by default, it is set to |
center |
whether to de-mean the input |
See Hallin and Liška (2007) for further details.
a list containing
q.hat |
a vector containing minimisers of the six information criteria |
Hallin, M. & Liška, R. (2007) Determining the number of factors in the general dynamic factor model. Journal of the American Statistical Association, 102(478), 603–617.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.