rsociality-ergmTerm-7ae668b9 function

Random sociality effect

Random sociality effect

Adds a random sociality effect to the model, with normal prior centered around 00 and a variance that is estimated. Can only be used on directed networks.

Important: This term works in list("latentnet")'s ergmm() only. Using it in ergm() will result in an error.

# binary: rsociality(var=1, var.df=3) # valued: rsociality(var=1, var.df=3)

Arguments

  • var: The scale parameter for the scale-inverse-chi-squared prior distribution of the sociality effect variance. To set it in the prior argument to ergmm, use sociality.var.
  • var.df: The degrees of freedom parameter for the scale-inverse-chi-squared prior distribution of the sociality effect variance. To set it in the prior argument to ergmm, use sociality.var.df.

Details

The following parameters are associated with this term:

  • sociality: Numeric vector of values of each vertex's random sociality effect.
  • sociality.var: Random sociality effect's variance.

See Also

ergmTerm for index of model terms currently visible to the package.

ergm:::.formatTermKeywords("ergmTerm", "rsociality", "subsection")

  • Maintainer: Pavel N. Krivitsky
  • License: GPL-3 + file LICENSE
  • Last published: 2024-02-19