mmsbm packageThese are various utilities and generic methods used by the main package function.
approxB(y, d_id, pi_mat)getZ(pi_mat)
alphaLB(par, tot_nodes, c_t, x_t, s_mat, t_id, var_beta, mu_beta)
.cbind.fill(...)
.transf_muvar(
orig,
is_var,
is_array,
des.mat,
nblock = NULL,
nstate = NULL,
devs = NULL
)
.bar.legend(colPalette, range)
.mpower(mat, p)
.findPerm(block_list, target_mat = NULL, use_perms = TRUE)
.transf(mat)
.pi.hat(X, beta)
.e.pi(pi_l, kappa)
Numeric vector; vector of edge values.
Integer matrix; two-column matrix with nr. dyads rows, containing zero-based sender (first column) and receiver (second column) node id's for each dyad.
Numeric matrix; row-stochastic matrix of mixed-memberships.
Vector of parameter values.
Integer vector; total number of nodes each node interacts with.
Integer matrix; samples from Poisson-Binomial counts of a node instantiating a group.
Numeric matrix; transposed monadic design matrices.
Integer matrix; Samples of HMM states by time period.
Integer vector; for each node, what time-period is it observed in? zero-indexed.
Numeric arrays; prior mean and variances of monadic coefficients.
Numeric vectors; vectors of potentially different length to be cbind-ed.
Object to be transformed.
Boolean. Is the object to be transformed a variance term?
Boolean. Is the object to be transformed an array?
Numeric matrix. Design matrix corresponding to transformed object.
Number of groups in model, defaults to NULL.
Number of hidden Markov states in model, defaults to NULL.
Vector of standard deviations to use in transformation of variances. Defaults to NULL.
A function produced by colorRamp.
The range of values to label the legend.
Numeric matrix
Numeric scalar; power to raise matrix to.
List of matrices; each element is a square, numeric matrix that defines a blockmodel,
Numeric matrix; reference blockmodel that those in block_list should
be aligned to. Optional, defaults to NULL.
Boolean; should all row/column permutations be explored when
realigning matrices? defaults to TRUE.
Numeric matrix; design matrix of monadic predictors.
Numeric array; array of coefficients associated with monadic predictors. It of dimensions Nr. Predictors by Nr. of Blocks by Nr. of HMM states.
List of mixed-membership matrices.
Numeric matrix; matrix of marginal HMM state probabilities.
See individual return section for each function:
Matrix of cbind'ed elements in ..., with missing values in each vector filled with NA.
Matrix; the result of raising mat to the p power.
List of permuted blockmodel matrices
Matrix with transformed mixed-membership vectors along its rows, s.t. no element is equal to 0.0 or 1.0.
List of predicted mixed-membership matrices, one element per HMM state.
Matrix of expected mixed-membership vectors along its rows, with expectation computed over marginal distribution over HMM states for each time period.
These functions are meant for internal use only.