Skip to content

Instantly share code, notes, and snippets.

@jfb-h
jfb-h / rem_hierarchical.stan
Created September 7, 2023 13:30
Stan implementation of a hierarchical Dynamic Network Actor Model (the choice part)
data {
int N; // number of rows
int E; // number of events
int L; // number of transaction categories
int K; // number of covariates
vector<lower = 0, upper = 1>[N] choice;
matrix[N, K] X;