| ParamMixRHLP-class {flamingos} | R Documentation |
A Reference Class which contains parameters of a mixture of RHLP models.
Description
ParamMixRHLP contains all the parameters of a mixture of RHLP models.
Fields
fDataFData object representing the sample (covariates/inputs
Xand observed responses/outputsY).KThe number of clusters (Number of RHLP models).
RThe number of regimes (RHLP components) for each cluster.
pThe order of the polynomial regression.
qThe dimension of the logistic regression. For the purpose of segmentation, it must be set to 1.
variance_typeCharacter indicating if the model is homoskedastic (
variance_type = "homoskedastic") or heteroskedastic (variance_type = "heteroskedastic"). By default the model is heteroskedastic.alphaCluster weights. Matrix of dimension
(1, K).WParameters of the logistic process.
\boldsymbol{W} = (\boldsymbol{w}_{1},\dots,\boldsymbol{w}_{K})is an array of dimension(q + 1, R - 1, K), with\boldsymbol{w}_{k} = (\boldsymbol{w}_{k,1},\dots,\boldsymbol{w}_{k,R-1}),k = 1,\dots,K, andqthe order of the logistic regression.qis fixed to 1 by default.betaParameters of the polynomial regressions.
\boldsymbol{\beta} = (\boldsymbol{\beta}_{1},\dots,\boldsymbol{\beta}_{K})is an array of dimension(p + 1, R, K), with\boldsymbol{\beta}_{k} = (\boldsymbol{\beta}_{k,1},\dots,\boldsymbol{\beta}_{k,R}),k = 1,\dots,K,pthe order of the polynomial regression.pis fixed to 3 by default.sigma2The variances for the
Kclusters. If MixRHLP model is heteroskedastic (variance_type = "heteroskedastic") thensigma2is a matrix of size(R, K)(otherwise MixRHLP model is homoskedastic (variance_type = "homoskedastic") andsigma2is a matrix of size(K, 1)).nuThe degree of freedom of the MixRHLP model representing the complexity of the model.
phiA list giving the regression design matrices for the polynomial and the logistic regressions.
Methods
CMStep(statMixRHLP, verbose_IRLS = FALSE)Method which implements the M-step of the CEM algorithm to learn the parameters of the MixRHLP model based on statistics provided by the object
statMixRHLPof class StatMixRHLP (which contains the E-step and the C-step).initParam(init_kmeans = TRUE, try_algo = 1)Method to initialize parameters
alpha,W,betaandsigma2.If
init_kmeans = TRUEthen the curve partition is initialized by the R-means algorithm. Otherwise the curve partition is initialized randomly.If
try_algo = 1thenbetaandsigma2are initialized by segmenting the time seriesYuniformly intoRcontiguous segments. Otherwise,W,betaandsigma2are initialized by segmenting randomly the time seriesYintoRsegments.initRegressionParam(Yk, k, try_algo = 1)Initialize the matrix of polynomial regression coefficients beta_k for the cluster
k.MStep(statMixRHLP, verbose_IRLS = FALSE)Method which implements the M-step of the EM algorithm to learn the parameters of the MixRHLP model based on statistics provided by the object
statMixRHLPof class StatMixRHLP (which contains the E-step).