model_set | R Documentation |
Set the PRECAST model structure and paramters in the algorithm.
model_set(Sigma_equal=FALSE, Sigma_diag=TRUE,mix_prop_heter=TRUE,
error_heter=TRUE, Sp2=TRUE, wpca_int=FALSE,int.model='EEE',
coreNum = 1, coreNum_int=coreNum,
beta_grid=seq(0.2,4, by=0.2),
maxIter_ICM=6,maxIter=20, epsLogLik=1e-5, verbose=TRUE, seed=1)
Sigma_equal |
an optional logical value, specify whether Sigmaks are equal, default as FALSE. |
Sigma_diag |
an optional logical value, specify whether Sigmaks are diagonal matrices, default as |
mix_prop_heter |
an optional logical value, specify whether betar are distict, default as |
error_heter |
an optional logical value, whether use the heterogenous error i.e. lambdarj != lambdark for each sample r, default as |
Sp2 |
an optional logical value, whether add the ICAR model component in the model, default as TRUE. We provide this interface for those users who don't want to include the ICAR model. |
wpca_int |
an optional logical value, means whether use the weighted PCA to obtain the initial values of loadings and other paramters, default as |
int.model |
an optional string, specify which Gaussian mixture model is used in evaluting the initial values for PRECAST, default as "EEE"; and see |
coreNum |
an optional positive integer, means the number of thread used in parallel computating. |
coreNum_int |
an optional positive integer, means the number of cores used in parallel computation for initial values when |
beta_grid |
an optional vector of positive value, the candidate set of the smoothing parameter to be searched by the grid-search optimization approach. |
maxIter_ICM |
an optional positive value, represents the maximum iterations of ICM. |
maxIter |
an optional positive value, represents the maximum iterations of EM. |
epsLogLik |
an optional positive vlaue, tolerance vlaue of relative variation rate of the observed pseudo log-loglikelihood value, defualt as '1e-5'. |
verbose |
an optional logical value, whether output the information of the ICM-EM algorithm. |
seed |
an optional integer, the random seed in fitting PRECAST model. |
Nothing
Return a list including all paramters' setting.
nothing
Wei Liu
None
model_set()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.