evaluatePriorLambda | R Documentation |
evaluate prior value for parameter Lambda
evaluatePriorLambda(p, m, alpha2, qVec, psy, lambda, constraint, clusInd)
p |
the number of features |
m |
the number of clusters |
alpha2 |
hyper parameter |
qVec |
the vector of the number of factors in each clusters |
psy |
parameter |
lambda |
parameter |
constraint |
the pgmm constraint, a vector of length three with binary entry. For example, c(1,1,1) means the fully constraint model |
clusInd |
cluster indicator vector |
p <- 10 m <- 20 alpha2 <- 1.18 qVec <- rep(4, m) delta <- 2 bbeta <- 2 constraint <- c(0, 0, 0) psy <- generatePriorPsi( p, m, delta, bbeta, constraint ) lambda <- generatePriorLambda( p, m, alpha2, qVec, psy, constraint ) clusInd <- rep(1, m) #' evaluatePriorLambda( p, m, alpha2, qVec, psy, lambda, constraint, clusInd )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.