| ergmito_boot | R Documentation | 
Bootstrap of ergmito
ergmito_boot(x, ..., R, ncpus = 1L, cl = NULL)
x | 
 Either a formula or an object of class ergmito.  | 
... | 
 Additional arguments passed to the method.  | 
R | 
 Integer. Number of replicates  | 
ncpus | 
 Integer Number of CPUs to use. Only recommended if   | 
cl | 
 An object of class   | 
The resulting sample of parameters estimates is then used to compute
the variance-covariance matrix of the model. Cases in which Inf/NaN/NA
values were returned are excluded from the calculation.
An object of class ergmito_boot and ergmito. This adds three
elements to the ergmito object:
R The number of replicates.
sample A vector of length R with the cases used in each replicate.
dist The distribution of fitted parameters.
nvalid the number of cases used for computing the covar.
timer_boot records the time the whole process took.
data(fivenets)
set.seed(123)
ans0 <- ergmito(fivenets ~ edges + ttriad)
ans1 <- suppressWarnings(ergmito_boot(ans0, R = 100))
ans2 <- suppressWarnings(ergmito_boot(fivenets ~ edges + ttriad, R = 100))
# Checking the differences
summary(ans0)
summary(ans1)
summary(ans2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.