inst/examplePackage/LologExtension/R/zzz.R

.onLoad <- function(libname, pkgname){
	# Run registerMinDegree in MinDegree.cpp to allow
	# MinDegree to be used in formula
  registerMinDegree()
}

# #You can now use the new MinDegree term e.g.:
# library(ergm)
# data(flo)
# nflo<-as.BinaryNet(network(flo,directed=FALSE) )
# calculateStatistics(nflo ~ minDegree(3) + minDegree(5))
# fit <- lolog(nflo ~ edges() + minDegree(3),verbose=0)
# summary(fit)

Try the lolog package in your browser

Any scripts or data that you put into this service are public.

lolog documentation built on July 1, 2021, 9:09 a.m.