Skip to content

Commit

Permalink
Merge pull request #16 from andrjohns/array-syntax
Browse files Browse the repository at this point in the history
Update deprecated Stan syntax
  • Loading branch information
yuan-yin-truly authored Jan 19, 2024
2 parents a01de3c + 26095e3 commit 57faece
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions inst/stan/shrinkage.stan
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ data {
int M; // Num of samples
int K; // Num of cell types

int<lower = 1> cell_type[M]; // Cell type label
array[M] int<lower = 1> cell_type; // Cell type label

int<lower = 0> counts[N, M];
array[N, M] int<lower = 0> counts;

int<lower = 1> OC[M];
array[M] int<lower = 1> OC;

int<lower = 0, upper = 1> run_estimation; // estimate model vs. generate prior predictive

Expand All @@ -22,11 +22,11 @@ data {

parameters {

simplex[N] r[K]; // Native count rate
array[K] simplex[N] r; // Native count rate

vector<lower = 0, upper = 0.5>[M] background[N];
array[N] vector<lower = 0, upper = 0.5>[M] background;

vector<lower = 0, upper = 1>[N] delta[M];
array[M] vector<lower = 0, upper = 1>[N] delta;

vector<lower = 0, upper = 1>[M] delta_mean;
vector<lower = 0, upper = 0.5>[N] background_mean;
Expand Down

0 comments on commit 57faece

Please sign in to comment.