mgame: Multi Group AME model

View source: R/selection.R

mgameR Documentation

Multi Group AME model

Description

This function runs the ame amen::ame() model for a multi group setting. See amen documentation for complete list of parameters. It also calculates fit statistics and variance explained by the model.

Usage

mgame(
  data,
  Y,
  group,
  Xdyad = NULL,
  Xego = NULL,
  Xalter = NULL,
  family,
  R = 0,
  rvar = !(family == "rrl"),
  cvar = TRUE,
  dcor = !symmetric,
  nvar = TRUE,
  intercept = !is.element(family, c("rrl", "ord")),
  symmetric = FALSE,
  seed = 1,
  nscan = 5000,
  burn = 500,
  odens = 25,
  odmax_grand = NULL,
  modelFitTest = TRUE,
  nullModel = TRUE,
  gof = TRUE,
  prior = list(),
  verboseOutput = FALSE,
  makePlot = FALSE,
  group_standard = NULL,
  grand_standard = NULL
)

Arguments

data

a data frame in person parwise structure

Y

a dyadic outcome variable of interest

Xego

an individual level anticedent for the ego node

Xalter

an individual level anticedent for the alter node

family

set to "nrm" for weighted dyadic outcom and "bin" for unweighted outcome values. See ame documentation for more information.

modelFitTest

weather to run fit test models

nullModel

whether to run a null_model with only random additive and multiplicitive effects to calculate unique varinace explained by fixed effects.

verboseOutput

print ame model out put or not

makePlot

generate plots as models are running or not

group_standard

a list of strings corrisponding to columns in data to be group-standardized

grand_standard

a list of strings corrisponding to columns in data to be grand-standardized

...

See amen::ame() for details

Value

An object of the class "ame_mg" which records the posterior distribution


djgriffin13/isNet documentation built on May 31, 2022, 2:58 p.m.