Learn R Programming

⚠️There's a newer version (1.4.5) of this package.Take me there.

amen (version 0.999)

Additive and multiplicative effects modeling of networks and relational data

Description

This package computes Bayesian estimates for additive and multiplicative effects (AME) models for networks and relational data. The basic model includes regression terms, the covariance structure of the social relations model (Warner, Kenny and Stoto (1979), Wong (1982)), and multiplicative factor effects (Hoff(2009)). Four different link functions accommodate different relational data structures, including binary/network data (bin), normal relational data (nrm), ordinal relational data (ord) and data from fixed-rank nomination schemes (frn). Several of these link functions are discussed in Hoff, Fosdick, Volfovsky and Stovel (2013). Development of this software was supported in part by NICHD grant R01HD067509-01A1.

Copy Link

Version

Install

install.packages('amen')

Monthly Downloads

348

Version

0.999

License

GPL-3

Maintainer

Peter D Hoff

Last Published

March 1st, 2014

Functions in amen (0.999)

YX_cbin

Censored binary nomination data and covariates
YX_rrl

row-specific ordinal relational data and covariates
Xbeta

Linear combinations of submatrices of an array
rZ_cbin_fc

Simulate Z given fixed rank nomination data
simY_ord

Simulate an ordinal relational matrix
YX_frn

Fixed rank nomination data and covariates
design_array

Computes the design socioarray of covariate values
rZ_rrl_fc

Simulate Z given relative rank nomination data
raSab_bin_fc

Simulate a and Sab from full conditional distributions under bin likelihood
plot.ame

Plot results of an AME object
rZ_ord_fc

Simulate Z given the partial ranks
YX_bin

binary relational data and covariates
rmvnorm

Simulation from a multivariate normal distribution
gofstats

Goodness of fit statistics
rZ_nrm_fc

Simulate missing values in a normal AME model
raSab_frn_fc

Simulate a and Sab from full conditional distributions under frn likelihood
amen-package

Additive and multiplicative effects modeling of networks and relational data
simY_bin

Simulate a network, i.e. a binary relational matrix
rbeta_ab_fc

Gibbs sampling of additive row and column effects and regression coefficient
rZ_frn_fc

Simulate Z given fixed rank nomination data
YX_ord

ordinal relational data and covariates
simY_nrm

Simulate a normal relational matrix
mhalf

Symmetric square root of a matrix
rs2_fc

Gibbs update for dyadic variance
YX_nrm

normal relational data and covariates
rrho_mh

Metropolis update for dyadic correlation
summary.ame

Summary of an AME object
simY_rrl

Simulate an relational matrix based on a relative rank nomination scheme
zscores

rank-based z-scores
simZ

Simulate Z given its expectation and covariance
ame

AME model fitting routine
raSab_cbin_fc

Simulate a and Sab from full conditional distributions under the cbin likelihood
simY_frn

Simulate an relational matrix based on a fixed rank nomination scheme
rZ_bin_fc

Simulate Z based on a probit model
rwish

Simulation from a Wishart distribution
rUV_fc

Gibbs sampling of U and V