Skip to content

Commit

Permalink
Merge pull request #47 from andrjohns/array-syntax
Browse files Browse the repository at this point in the history
Update deprecated syntax for future rstan compatibility
  • Loading branch information
yoshidk6 authored Sep 11, 2023
2 parents a2dca11 + b680f98 commit a1066d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ LazyData: true
ByteCompile: true
Depends: R (>= 3.5.0), methods,Rcpp (>= 1.0.0)
Imports:
rstan (>= 2.18.2),
rstan (>= 2.26.0),
rstantools (>= 2.3.0),
magrittr (>= 1.5),
dplyr (>= 0.8.0),
tidyr (>= 1.0.0),
purrr (>= 0.3.0),
ggplot2 (>= 2.2.1)
LinkingTo:
StanHeaders (>= 2.18.1),
rstan (>= 2.18.2),
StanHeaders (>= 2.26.0),
rstan (>= 2.26.0),
BH (>= 1.69.0-1),
Rcpp (>= 1.0.0),
RcppEigen (>= 0.3.3.5.0),
Expand Down
14 changes: 7 additions & 7 deletions inst/stan/emax.stan
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ data{
vector[N] response;

// Covariates
int<lower = 1> covemax[N];
int<lower = 1> covec50[N];
int<lower = 1> cove0[N];
array[N] int<lower = 1> covemax;
array[N] int<lower = 1> covec50;
array[N] int<lower = 1> cove0;
int<lower = 1> n_covlev_emax;
int<lower = 1> n_covlev_ec50;
int<lower = 1> n_covlev_e0;
Expand Down Expand Up @@ -37,10 +37,10 @@ data{
parameters{
// vector[n_covlev_emax] emax;
vector<lower = 0>[n_covlev_ec50] ec50;
// vector[n_covlev_e0] e0_par[1-e0_fix_flg];
real e0_par[n_covlev_e0, 1-e0_fix_flg];
real emax_par[n_covlev_emax, 1-emax_fix_flg];
real<lower = 0> gamma_par[1-gamma_fix_flg];
// array[1-e0_fix_flg] vector[n_covlev_e0] e0_par;
array[n_covlev_e0, 1-e0_fix_flg] real e0_par;
array[n_covlev_emax, 1-emax_fix_flg] real emax_par;
array[1-gamma_fix_flg] real<lower = 0> gamma_par;

real<lower = 0> sigma;
}
Expand Down

0 comments on commit a1066d4

Please sign in to comment.