sampler.net.attr: Constructor for Single Component Sampler Settings

View source: R/sampler.r

sampler.net.attrR Documentation

Constructor for Single Component Sampler Settings

Description

Creates an object of class 'sampler_net_attr' (and 'R6'). Specifies MCMC sampling parameters for one component (attribute or network) within the 'iglm' simulation framework. Used as input to 'sampler.iglm()'.

Usage

sampler.net.attr(n_proposals = 10000, file = NULL, tnt = TRUE)

Arguments

n_proposals

(integer) Number of MCMC proposals per sampling update. Default: 10000.

file

(character or 'NULL') If provided, loads state from an .rds file.

tnt

(logical) If 'TRUE' (default), use Tie-No-Tie sampling.

Value

An object of class 'sampler_net_attr' (and 'R6').

See Also

'sampler.iglm'

Examples

sampler_comp_default <- sampler.net.attr()
sampler_comp_default

sampler_comp_custom <- sampler.net.attr(n_proposals = 50000, tnt = FALSE)
sampler_comp_custom

iglm documentation built on April 23, 2026, 5:07 p.m.