UseBasicPrior {vabayelMix} | R Documentation |
This function implements an uninformative prior distribution for the cluster centers and variances, but allows the user to define prior weights for the clusters.
UseBasicPrior(data, weights.v)
data |
A matrix with columns representing variables and rows observations. Algorithm clusters observations. |
weights.v |
A vector of relative prior weights for the clusters. |
weights.v
is a vector of length Ncat
, the maximum number
of clusters to look for.
A list with following components. The first four are matrices of dimension Ncat
x Ndim
, dapi
is a vector of length Ncat
.
mean |
the means of the cluster mean gaussian priors. |
varm |
the inverse variances for the cluster mean gaussian priors. |
ivara |
parameters for the gamma prior distribution of the inverse variances of the clusters. See references. |
ivarb |
parameters for the gamma prior distribution of the inverse variances of the clusters. See references. |
dapi |
weight vector specifying prior knowledge about the number of clusters. |
Andrew Teschendorffaet21@hutchison-mrc.cam.ac.uk