bilinear-ergmTerm | R Documentation |
Adds a term to the model equal to the inner product of
the latent positions: Z_i \cdot Z_j
, where
Z_i
and Z_j
are the positions of their
respective actors in an unobserved social space. These positions
may optionally have a finite spherical Gaussian mixture
clustering structure. Note: For a bilinear latent space
effect, two actors being closer in the clustering sense does not
necessarily mean that the expected value of a tie between them is
higher. Thus, a warning is printed when this model is combined
with clustering.
Important: This term works in latentnet's ergmm()
only. Using it in ergm()
will result in an error.
# binary: bilinear(d, G=0, var.mul=1/8, var=NULL, var.df.mul=1, var.df=NULL,
# mean.var.mul=1, mean.var=NULL, pK.mul=1, pK=NULL)
# valued: bilinear(d, G=0, var.mul=1/8, var=NULL, var.df.mul=1, var.df=NULL,
# mean.var.mul=1, mean.var=NULL, pK.mul=1, pK=NULL)
d |
The dimension of the latent space. |
G |
The number of groups (0 for no clustering). |
var.mul |
In the absence of |
var |
If given, the scale parameter for the
scale-inverse-chi-squared prior distribution of the
within-cluster variance. To set it in the |
var.df.mul |
In the absence of |
var.df |
The degrees of freedom parameter for the
scale-inverse-chi-squared prior distribution of the
within-cluster variance. To set it in the |
mean.var.mul |
In the absence of |
mean.var |
The variance of the spherical Gaussian prior
distribution of the cluster means. To set it in the |
pK.mul |
In the absence of |
pK |
The parameter of the Dirichilet prior distribution of
cluster assignment probabilities. To set it in the |
The following parameters are associated with this term:
Z
Numeric matrix with rows being latent space positions.
Z.K
(when \code{G}>0
)Integer vector of cluster assignments.
Z.mean
(when \code{G}>0
)Numeric matrix with rows being cluster means.
Z.var
(when \code{G}>0
)Depending on the model, either a numeric vector with within-cluster variances or a numeric scalar with the overal latent space variance.
Z.pK
(when \code{G}>0
)Numeric vector of probabilities of a vertex being in a particular cluster.
ergmTerm
for index of model terms currently visible to the package.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.