Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from andrjohns/array-syntax
Update deprecated syntax for future rstan compatibility
- Loading branch information
Showing
2 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
int<lower=1> B; // number of JZS blocks | ||
int<lower=1> P[B]; // number of predictors per block | ||
int<lower=1,upper=sum(P)> b_idx[B,2]; // start-end index per JZS block for beta / X cols | ||
array[B] int<lower=1> P; // number of predictors per block | ||
array[B,2] int<lower=1,upper=sum(P)> b_idx; // start-end index per JZS block for beta / X cols | ||
|
||
vector<lower=0>[B] rscale; // prior scaling for JZS blocks | ||
matrix[N,sum(P)] X; // design matrix (centered) | ||
matrix[max(P),max(P)] L[B]; // lower triangular cholesky of: C=inverse(covariance(X)) | ||
array[B] matrix[max(P),max(P)] L; // lower triangular cholesky of: C=inverse(covariance(X)) |