simulate.lolog {lolog} | R Documentation |
Generates BinaryNetworks from a fit lolog object
Description
Generates BinaryNetworks from a fit lolog object
Usage
## S3 method for class 'lolog'
simulate(object, nsim = 1, seed = NULL, convert = FALSE, ...)
Arguments
object |
A 'lolog' object. |
nsim |
The number of simulated networks |
seed |
Either NULL or an integer that will be used in a call to set.seed before simulating |
convert |
convert to a network object#' |
... |
unused |
Value
A list of BinaryNet (or network if convert=TRUE) objects. Networks contain an additional vertex covariate "__order__" that indicates the sequence order in which the vertex was 'added' into the network.
Examples
library(network)
data(flo)
flomarriage <- network(flo,directed=FALSE)
flomarriage %v% "wealth" <- c(10,36,27,146,55,44,20,8,42,103,48,49,10,48,32,3)
fit <- lolog(flomarriage ~ edges + nodeCov("wealth"))
net <- simulate(fit)[[1]]
plot(net)
[Package lolog version 1.3.1 Index]