createCppSampler {ernm} | R Documentation |
create a sampler
Description
create a sampler
Usage
createCppSampler(
formula,
modelArgs = list(modelClass = "Model"),
dyadToggle = NULL,
dyadArgs = list(),
vertexToggle = NULL,
vertexArgs = list(),
nodeSamplingPercentage = 0.2,
ignoreMnar = TRUE,
theta = NULL,
...
)
Arguments
formula |
the model formula |
modelArgs |
additiional arguments for the model, e.g. tapering parameters |
dyadToggle |
the method of sampling to use. Defaults to alternating between nodal-tie-dyad and neighborhood toggling. |
dyadArgs |
list of args for dyad |
vertexToggle |
the method of vertex attribuate sampling to use. |
vertexArgs |
list of args for vertex |
nodeSamplingPercentage |
how often the nodes should be toggled |
ignoreMnar |
ignore missing not at random offsets |
theta |
parameter values |
... |
additional parameters to be passed to createCppModel |
Value
a MetropolisHastings object
[Package ernm version 1.0.1 Index]