Description Usage Arguments Details Value
Constructor for a mixedMemModelMCMC
object which can be fit using MCMC
in the mixedMem
package.
1 2 3 |
Total |
the number of individuals in the sample. |
J |
the number of variables observed on each individual. |
dist |
a vector of length |
Rj |
a vector of length J specifying the number of repeated measurements for each variable. |
Vj |
a vector of length |
obs |
an array with dimensions ( |
K |
the number of sub-populations. |
theta |
an array with dimensions ( |
ksi |
a vector which lies in the K-1 simplex which represents the relative frequency of each sub-population |
lambda |
a matrix with dimensions ( |
Z |
an array with dimensions ( |
tau |
an array of dimension ( |
beta |
shape parameter for prior for alpha |
gamma |
scale parameter for prior for alpha |
extended |
1 indicates the extended GoM model is being used; 0 indicates the normal mixed membership model without fixed stayers |
P |
vector of length S + 1 which lies in S dimensional simplex indicating the proportion of individuals in the fixed groups and GoM compartment. The first S elements correspond to the stayer classes, while the S + 1 element indicates the proportion of individuals in GoM compartment |
S |
integer indicating the number of fixed stayer classes if extended GoM is used. |
fixedObs |
an array with dimensions (S, |
alpha |
a scalar representing the sum of the dirichlet membership parameters |
The function returns an object of mixedMemModelMCMC
class. This object contains dimensions of the model,
the observed data, and the model parameters. Once a mixedMemModel
object is created,
the specified model can be fit for the data using the mmMCMCFit
function. If the inputs are inconsistent (ie if dimensions do not match,
or if observations and distribution types are not compatible,
mixedMemModelMCMC
will throw an error. Supported data types
include Bernoulli and Multinomial (Note that rank data is not supported
in the MCMC method). The MCMC method is capable of also estimating the
extended GoM model which allows for a fixed number of "stayers". See
Erosheva et al (2007) for a detailed description of the extended GoM Model.
For additional details on usage, and model
assumptions, see the corresponding vignette "Fitting Mixed
Membership Models Using mixedMem
".
returns an object of class mixedMemModelMCMC
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.