get_list_sparse_feature_adjmat {bigergm}R Documentation

Get a list of sparse feature adjacency matrix from a formula

Description

Get a list of sparse feature adjacency matrix from a formula

Usage

get_list_sparse_feature_adjmat(network, formula)

Arguments

network

a network object from which nodal covariates are extracted.

formula

a network model to be considered

Value

The list of sparse matrices of feature matrices that are used for the first step of the estimation.

Examples

data(toyNet)
model_formula <- toyNet ~ edges + nodematch("x") + nodematch("y") 
list_feature_matrices <- 
  get_list_sparse_feature_adjmat(toyNet, model_formula)

[Package bigergm version 1.1.0 Index]