Learn R Programming

blkergm (version 1.1)

blkergm-package: An extension of "ergm" package for handling models with block structure

Description

This package is an extension to the package ergm which takes the block information into consideration for ERGMs. The implementation is based on the ergm.userterms package. In this package, several (block) models are considered. They include Beta model, block Erdos-Renyi, block Beta, block Markov random graph models under different assumptions. The first three models are those assuming independence between edges. The block Markov random graph models assume dependence within blocks,independence or dependence on between block edges. The package implement these models by taking different terms in the model. See blkergm.terms for explanation of those terms. Also see statnet,ergm and network for more information on how to use ERGMs to analyse social network data.

Arguments

Details

Package:
blkergm
Type:
Package
Version:
1.0
Date:
2013-09-16
License:
GPL(>= 2)

References

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

See Also

statnet, network, ergm, ergm-terms

Examples

Run this code
## Not run: 
# data(zachary)
# summary(zachary~blktriangle(c(16,34),1)+blktriangle(c(16,34),2))
# fit <- ergm(zachary~blkedges(c(16,34),1:3), MPLEonly=TRUE)
# summary(fit)
# ## End(Not run)

Run the code above in your browser using DataLab