The main function to fit block ERGMs

Share:

Description

This is the main function to fit block ERGMs.

Usage

1
2
blkergm(formula,offset.coef=NULL,target.stats=NULL,eval.loglik=TRUE,
estimate=c("MLE","MPLE"),control=control.ergm(),verbose=FALSE,...)

Arguments

formula

The formula is expressed as nw~blkergm.terms

offset.coef

See ergm for more explanation

target.stats

See ergm for more explanation

eval.loglik

See ergm for more explanation

estimate

The estimation methods include "MLE" and "MPLE" for ERGMs, they both work for block ERGMs.

control

See ergm for more explanation

verbose

See ergm for more explanation

...

Additional arguments, to be passed to lower-level functions.

References

Hunter DR, Goodreau SM, Handcock MS (2011) ergm.userterms: A Template Package for Extending statnet.

See Also

statnet, network, ergm, ergm-terms

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
data(zachary)
summary(zachary~blkdegseq(c(0,16,34),2))
summary(zachary~blktriangle(c(16,34),2))
#block Beta model
fit <- blkergm(zachary~blkdegseq(c(0,16,34),1)+blkdegseq(c(0,16,34),2)+blkedges(c(16,34),2))
summary(fit)

## End(Not run)