Unlimited learning, half price | 50% off
Get 50% off unlimited learning

amen (version 1.0)

design_array: Computes the design socioarray of covariate values

Description

Computes the design socioarray of covariate values for an AME fit

Usage

design_array(Xrow=NULL,Xcol=NULL,Xdyad=NULL,intercept=TRUE,n)

Arguments

Xrow
an n x pr matrix of row covariates
Xcol
an n x pc matrix of column covariates
Xdyad
an n x n x pd array of dyadic covariates
intercept
logical
n
number of rows/columns

Value

  • an n x n x (pr+pc+pd+intercept) 3-way array

Examples

Run this code
## The function is currently defined as
design_array(intercept=TRUE,n=10)

Run the code above in your browser using DataLab