estimate_between_param {bigergm}R Documentation

Estimate between-block parameters by logit

Description

Estimate between-block parameters by logit

Usage

estimate_between_param(formula, network, block)

Arguments

formula

formula for estimating between-block parameters

network

network object

block

a vector that represents which node belongs to which node

Value

'ergm' object of the estimated model.

Examples

adj <- c(
c(0, 1, 0, 0, 1, 0),
c(1, 0, 1, 0, 0, 1),
c(0, 1, 0, 1, 1, 0),
c(0, 0, 1, 0, 1, 1),
c(1, 0, 1, 1, 0, 1),
c(0, 1, 0, 1, 1, 0)
)
adj <- matrix(data = adj, nrow = 6, ncol = 6)
rownames(adj) <- as.character(1001:1006)
colnames(adj) <- as.character(1001:1006)

# Use non-consecutive block names
block <- c(50, 70, 95, 50, 95, 70)

g <- network::network(adj, matrix.type = "adjacency")

est <- estimate_between_param(
  formula = g ~ edges,network = g, block = block
)

[Package bigergm version 1.1.0 Index]