The `sampler_net_attr` class is a simple R6 container used within the `sampler.iglm` class. It holds the MCMC sampling parameters for a single component of the `iglm` model, such as one attribute (e.g., `x_attribute`) or a part of the network (e.g., `z_network` within the overlap). It stores the number of proposals and the TNT flag. The random seed is managed centrally by the parent `sampler.iglm` object.
Active bindings
n_proposals(`integer`) Read-only. Number of MCMC proposals per step.
tnt(`logical`) Read-only. Whether TNT sampling is used.
Methods
Method new()
Create a new `sampler_net_attr` object.
Usage
sampler.net.attr.generator$new(n_proposals = 10000, file = NULL, tnt = TRUE)Arguments
n_proposals(integer) The number of MCMC proposals (iterations) to perform for this specific component during each sampling step. Default is 10000. Must be a non-negative integer.
file(character or `NULL`) If provided, loads the sampler state from the specified .rds file instead of initializing from parameters.
tnt(logical) If `TRUE` (default), use Tie-No-Tie sampling (only if used for networks).
Method print()
Print a summary of the sampler settings for this component.
Method save()
Save state to an .rds file.
