vizTheta: Mixed Membership Visualization

Description Usage Arguments Details

View source: R/viz_functions.R

Description

vizTheta plots θ, the parameters which govern the sub-population distributions of variables in a mixed membership model. The parameter θ_{j,k} specifies the distribution of variable j for complete members of sub-population k. The estimated parameters from the given model are shown in black in each plot; the parameters from a comparison model (if available) are shown in red. Each row of plots represents a single variable, and each column of the plots represents a sub-population.

Usage

1
2
vizTheta(model, compare = NULL, main = "Estimated Theta", varNames = NULL,
  groupNames = NULL, nrow = NULL, fitNames = NULL, indices = NULL)

Arguments

model

the mixedMemModel object that will be plotted.

compare

an array of the same dimensions as model$theta which contains values to compare against the fitted value.

main

the main figure title.

varNames

a vector of strings specifying labels for each variable.

groupNames

a vector of strings specifying labels for each sub-population.

nrow

the number of rows in each plot. If the argument is not specified, all variables will appear in one plot.

fitNames

the names of the models plotted.

indices

a vector which indicates specific variables to plot. If the argument is not specified, all variables will be plotted. If the number of variables to plot is greater than nrow, then multiple plots will be produced.

Details

This is the function called by the plot generic function for mixedMemModel objects.


mixedMem documentation built on Dec. 2, 2020, 1:09 a.m.