param_init: Initial estimation of heterogeneous parameters Lambda and...

init_hparamR Documentation

Initial estimation of heterogeneous parameters Lambda and Sigma

Description

'init_hparam( )' gives the initial estimation of parameters Lambda and Sigma.

calculate the number of pairs that hlambda and hsigma have the same sign

print iteration info

'init_omega( )' gives the initial estimation of group-correlation matrix omega.

Usage

init_hparam(x, centers, labels, tol, iter, verbose = FALSE)

init_hparam0(x, tol, iter, verbose = FALSE)

hparam_sign(vec1, vec2)

verbose_print_alpha(verbose, param_name, min_val, x, qalpha, hlambda, hsigma)

init_hparam0_fix_hlambda(x, tol, iter, verbose = FALSE, hlambda)

init_hparam_fix_hlambda(
  x,
  centers,
  labels,
  tol,
  iter,
  verbose = FALSE,
  hlambda
)

init_omega(x, centers, labels, hlambda, hsigma)

obj_init_qalpha(x, hlambda, hsigma)

obj_qalpha_logL(x, qalpha, hlambda, hsigma)

obj_init_hlambda(x, qalpha)

obj_init_hsigma(x, qalpha, hlambda)

Arguments

x

a numeric matrix data.

centers

an integer specifying the number of clusters.

labels

a vector specifying the cluster labels of the columns of x.

tol

numerical tolerance of the iteration updates.

iter

number of iterations.

verbose

if TRUE, print iteration information.

vec1

a vector of hlambda estimation.

vec2

a vector of hlambda estimation.

param_name

name of the parameter being updated.

min_val

minimum objective-value being calculated.

qalpha

distribution of parameter vector alpha.

hlambda

heterogeneous parameter vector Lambda.

hsigma

heterogeneous parameter vector Sigma.

Value

A list of values.

hlambda

optimal initial estimation of Lambda.

hsigma

optimal initial estimation of Sigma.


xiangli2pro/hbcm documentation built on Nov. 15, 2024, 9:15 a.m.