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 syntax for future rstan compatibility #47

Merged
merged 1 commit into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
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
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
Loading