Learn R Programming

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

amen (version 1.0)

Additive and Multiplicative Effects Models for Networks and Relational Data

Description

Analysis of network and relational data using additive and multiplicative effects (AME) models. The basic model includes regression terms, the covariance structure of the social relations model (Warner, Kenny and Stoto (1979), Wong (1982)), and multiplicative factor models (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.

Copy Link

Version

Install

install.packages('amen')

Monthly Downloads

427

Version

1.0

License

GPL-3

Maintainer

Peter D Hoff

Last Published

February 26th, 2015

Functions in amen (1.0)

YX_nrm

normal relational data and covariates
YX_bin

binary relational data and covariates
rbeta_ab_rep_fc

Gibbs sampling of additive row and column effects and regression coefficient with independent replicate relational data
ame

AME model fitting routine
simY_rrl

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

ordinal relational data and covariates
YX_frn

Fixed rank nomination data and covariates
addhealthc9

AddHealth community 9 data
sampsonmonks

Sampson's monastery data
rZ_cbin_fc

Simulate Z given fixed rank nomination data
simZ

Simulate Z given its expectation and covariance
rZ_rrl_fc

Simulate Z given relative rank nomination data
ame_rep

AME model fitting routine for replicated relational data
simY_ord

Simulate an ordinal relational matrix
rUV_rep_fc

Gibbs sampling of U and V
YX_rrl

row-specific ordinal relational data and covariates
coldwar

Cold War data
rUV_fc

Gibbs sampling of U and V
rZ_ord_fc

Simulate Z given the partial ranks
simY_bin

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

AddHealth community 3 data
conflict90s

Conflicts in the 90s
comtrade

Comtrade data
rs2_rep_fc

Gibbs update for dyadic variance with independent replicate relational data
rZ_bin_fc

Simulate Z based on a probit model
rbeta_ab_fc

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

Lazega's law firm data
raSab_bin_fc

Simulate a and Sab from full conditional distributions under bin likelihood
zscores

rank-based z-scores
rrho_mh

Metropolis update for dyadic correlation
Xbeta

Linear combinations of submatrices of an array
YX_cbin

Censored binary nomination data and covariates
rmvnorm

Simulation from a multivariate normal distribution
amen-package

Additive and Multiplicative Effects Models for Networks and Relational Data
design_array

Computes the design socioarray of covariate values
dutchcollege

Dutch college data
YX_bin_long

binary relational data and covariates
summary.ame

Summary of an AME object
raSab_frn_fc

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

Plot results of an AME object
rZ_nrm_fc

Simulate missing values in a normal AME model
simY_nrm

Simulate a normal relational matrix
rs2_fc

Gibbs update for dyadic variance
gofstats

Goodness of fit statistics
mhalf

Symmetric square root of a matrix
raSab_cbin_fc

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

Simulation from a Wishart distribution
rZ_frn_fc

Simulate Z given fixed rank nomination data
simY_frn

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

Metropolis update for dyadic correlation with independent replicate data