Skip to contents

Create design array for replicate data

Usage

get_design_rep(Y, Xdyad, Xrow, Xcol, actorSet, intercept, n, N, pr, pc, pd,
symmetric = FALSE)

Arguments

Y

dependent variable in array format

Xdyad

dyadic covariates in array format

Xrow

sender covariates in array format

Xcol

receiver covariates in array format

actorSet

vector of actors

intercept

logical indicating whether to include intercept

n

number of actors

N

number of replicates

pr

number of receiver covariates

pc

number of sender covariates

pd

number of dyadic covariates

symmetric

logical; in a symmetric network a dyad has one covariate value, so a dyad is unobserved in a period when the dyadic covariate of either of its two cells is missing (lame fills a hole in one triangle from the other before the design is built, so only a dyad missing in both reaches this rule)

Value

returns list of design array values necessary for ame_repL, plus intercept: the intercept flag actually used (FALSE when the covariates span a constant across the observed panel). A cell whose covariate is missing is set to NA in the returned Y and its design value to 0.

Author

Shahryar Minhas