Learn R Programming

latentnet (version 2.11.0)

ergmm-families: Edge Weight Distribution Families

Description

Family-link combinations supported by ergmm.

Arguments

Family-link combinations

IDC nameR nameTypeFamilyLink
1Bernoulli_logitBernoulli.logitDiscreteBernoullilogit
2binomial_logitbinomial.logitDiscretebinomiallogit
3Poisson_logPoisson.logDiscretePossionlog
4Bernoulli_cont_logitNAContinuousBernoullilogit
5binomial_cont_logitNAContinuousbinomiallogit
6Poisson_cont_logNAContinuousPossionlog
7normal_identitynormal.identityContinuousnormalidentity

.link can be omited when not ambiguous. Some families require an appropriate fam.par argument to be supplied to ergmm:

binomial families

a mandatory trials parameter for the number of trials (same for every dyad) whose success the response counts represent

normal

a mandatory prior.var and prior.var.df parameter for the prior scale and degrees of freedom of the variance of the dyad values

Details

Each supported family has a family of functions, of the form pY.-, lpY.-, EY.-, dlpY.deta.-, dlpY.ddispersion.-, lpYc.-, rsm.-, followed by the family's name, for the respective family's name, representing the family's likelihood, log-likelihood, expectation, derivative of log-likelihood with repect to the linear predictor, derivative of log-likelihood with respect to the dispersion parameter, log-normalizing-constant, and random sociomatrix generation functions.

On the C side, similar functions exist, but becuase of static typing, are also provided for ``continuous'' versions of those families. These should not be used on their own, but are used in estimating MKL positions from the posterior distribution.