Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deprecated Stan syntax #16

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading