Random effects models for directed graphs with covariates by