compute_multiplied_feature_matrices {bigergm}R Documentation

Get a list of sparse feature adjacency matrix from a formula.

Description

These matrices can be given to the hergm function as parameters. Generally, this function should only be used if users are working with large networks and are planning to continually estimate the model.

Usage

compute_multiplied_feature_matrices(net, list_feature_matrices)

Arguments

net

a network object from which nodal covariates are extracted.

list_feature_matrices

a list of feature adjacency matrices generated by get_list_sparse_feature_adjmat().

Value

A list of sparse matrices of multiplied feature matrices that are needed for carrying our the first step of the estimation if the covariates should be used.

Examples

data(toyNet)

model_formula <- toyNet ~ edges + nodematch("x") + nodematch("y") 
list_feature_matrices <- get_list_sparse_feature_adjmat(toyNet, model_formula)
multiplied_feature_matrices <- 
  compute_multiplied_feature_matrices(net = toyNet,
  list_feature_matrices = list_feature_matrices)


[Package bigergm version 1.1.0 Index]