marg_cond_sim {ergm.multi}R Documentation

Calculate gofN()-style Pearson residuals for arbitrary statistics

Description

This function is to be considered experimental. Do NOT rely on it. It may, eventually, be moved to ergm, perhaps integrated into the simulate methods.

Usage

marg_cond_sim(
  object,
  nsim = 1,
  obs.twostage = nsim/2,
  GOF = NULL,
  control = control.gofN.ergm(),
  save_stats = FALSE,
  negative_info = c("error", "warning", "message", "ignore"),
  ...
)

Arguments

object

an ergm object.

nsim

number of realizations.

obs.twostage, GOF, save_stats

see gofN().

control

a control list returned by control.gofN.ergm(); note that nsim and obs.twostage parameters in the control list are ignored in favor of those passed to the function directly.

negative_info

how to handle the situation in which the constrained variance exceeds the unconstrained: the corresponding action will be taken.

...

additional arguments to ergm_model(), simulate.ergm(), and summary.ergm_model().

Value

an object of similar structure as that returned by gofN().


[Package ergm.multi version 0.2.1 Index]