mgame | R Documentation |
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.
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 )
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 |
An object of the class "ame_mg" which records the posterior distribution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.