vizMem: Mixed Membership Visualization

Description Usage Arguments Details

Description

vizMem plots estimates for the group membership scores of each individual. This is the function called by the mixedMemModel class generic plot function.

Usage

1
2
vizMem(model, compare = NULL, main = "Estimated Membership", nrow = NULL,
  ncol = NULL, indices = NULL, groupNames = NULL, fitNames = NULL)

Arguments

model

the mixedMemModelVI or mixedMemModelMCMC object that will be plotted.

compare

a matrix of dimension (Total, K) which contains parameters to compare against the fitted model.

main

the main figure title.

nrow

the number of rows in each plot.

ncol

the number of columns in each plot.

indices

the specific individuals which will be shown in the plot. If the argument is left blank, all individuals will be plotted. If the number of individuals to be plotted is larger than nrow * ncol then multiple plots will be produced.

groupNames

a vector specifying labels for each sub-population.

fitNames

a vector of length 2 containing strings which correspond to the names of the models (fitted and comparison).

Details

For a mixedMemModelVI object, the estimates plotted are the normalized φ, which are the posterior means from the variational distribution. For a mixedMemModelMCMC object, the estimates plotted are the point estimates for λ_i. The estimated group membership scores are shown in black, and the estimates from a comparison model (if available) are shown in red. Each plot represents an individual.


ysamwang/mixedMem documentation built on May 4, 2019, 5:33 p.m.