ergm.Cprepare {ergm}R Documentation

Internal Function to Prepare Data for ergm's C Interface

Description

These are internal functions not intended to be called by end users. The ergm.Cprepare function builds an object called Clist that contains all the necessary ingredients to be passed to the C functions, other functions create edgelists and handle missing edge data.

Usage

ergm.Cprepare(nw, m, response = NULL)

ergm.Cprepare.el(x, attrname=NULL, prototype=NULL)

ergm.Cprepare.miss(nw)

ergm.design(nw, model, verbose = FALSE)

Arguments

nw,x

a network object

m,model

a model object, as returned by ergm.getmodel

response,attrname

character name of an edge attribute

prototype

A network whose relevant attributes (size, directedness, bipartitedness, and presence of loops) are imposed on the output edgelist if x is already an edgelist. (For example, if the prototype is undirected, ergm.Cprepare.el will ensure that t < h.)

verbose

logical, whether the design matrix should be printed; default=FALSE

Details

These low-level functions are used by other ergm-related packages, but should never need to be called directly by the user.

Value

ergm.Cprepare returns Clist: a list of parameters used by several of the fitting routines containing

ergm.design returns: Clist.miss

ergm.Cprepare.miss returns a vector of length 1+Nmissing*2. The first element is the number of missing edges, and the remainder a column-major edgelist


[Package ergm version 3.4.0 Index]