From 26095e3e19485e147f6bdb5b6008165443a07737 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Fri, 19 Jan 2024 18:57:45 +0200 Subject: [PATCH] Update deprecated Stan syntax --- inst/stan/shrinkage.stan | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/inst/stan/shrinkage.stan b/inst/stan/shrinkage.stan index 0c25035..eb383b9 100644 --- a/inst/stan/shrinkage.stan +++ b/inst/stan/shrinkage.stan @@ -4,11 +4,11 @@ data { int M; // Num of samples int K; // Num of cell types - int cell_type[M]; // Cell type label + array[M] int cell_type; // Cell type label - int counts[N, M]; + array[N, M] int counts; - int OC[M]; + array[M] int OC; int run_estimation; // estimate model vs. generate prior predictive @@ -22,11 +22,11 @@ data { parameters { - simplex[N] r[K]; // Native count rate + array[K] simplex[N] r; // Native count rate - vector[M] background[N]; + array[N] vector[M] background; - vector[N] delta[M]; + array[M] vector[N] delta; vector[M] delta_mean; vector[N] background_mean;