# \donttest{
# find all of the terms that mention triangles
search.ergmTerms('triangle')
# two ways to search for bipartite terms:
# search using a bipartite net as a template
myNet<-network.initialize(5,bipartite=3)
search.ergmTerms(net=myNet)
# or request the bipartite keyword
search.ergmTerms(keywords='bipartite')
# search on multiple keywords
search.ergmTerms(keywords=c('bipartite','dyad-independent'))
# print out the content for a specific term
search.ergmTerms(name='b2factor')
# request the bipartite keyword in the ergm package
search.ergmTerms(keywords='bipartite', packages='ergm')
# }
# \donttest{
# find all of the constraint that mention degrees
search.ergmConstraints('degree')
# search for hints only
search.ergmConstraints(keywords='hint')
# search on multiple keywords
search.ergmConstraints(keywords=c('directed','dyad-independent'))
# print out the content for a specific constraint
search.ergmConstraints(name='b1degrees')
# request the bipartite keyword in the ergm package
search.ergmConstraints(keywords='directed', packages='ergm')
# }
# \donttest{
# find all discrete references
search.ergmReferences(keywords='discrete')
# }
# \donttest{
# find all of the hints
search.ergmHints('degree')
# }
# \donttest{
# find all of the proposals that mention triangles
search.ergmProposals('MH algorithm')
# print out the content for a specific proposals
search.ergmProposals(name='randomtoggle')
# find all proposals with required or optional constraints
search.ergmProposals(constraints='.dyads')
# find all proposals with references
search.ergmProposals(reference='Bernoulli')
# request proposals that mention triangle in the ergm package
search.ergmProposals('MH algorithm', packages='ergm')
# }
Run the code above in your browser using DataLab