Skip to content

Commit 9d8d4ca

Browse files
committed
minor changes to prior structure
1 parent a31d06b commit 9d8d4ca

2 files changed

Lines changed: 96 additions & 234 deletions

File tree

inst/stan/gp_grid.stan

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ transformed data{
5353
real ec50_2;
5454
real<lower=0> slope_1;
5555
real<lower=0> slope_2;
56-
real t1;
57-
real t2;
5856

5957
// For Interaction transformation
6058
real<lower=0> b1;
@@ -77,8 +75,6 @@ transformed data{
7775
row_vector<lower=0, upper=1>[n1] p01; // Monotherapy drug 1
7876
vector<lower=0, upper=1>[n2] p02; // Monotherapy drug 2
7977
matrix<lower=-1,upper=1>[n2,n1] Delta; // Interaction
80-
real beta1;
81-
real beta2;
8278

8379
{
8480
real la_1_param;
@@ -136,9 +132,6 @@ transformed data{
136132
la_2_param = 0;
137133
}
138134

139-
beta1 = t1*la_1_param;
140-
beta2 = t2*la_2_param;
141-
142135
for (j in 1:n1){
143136
p01[j] = la_1_param+(1-la_1_param)/(1+10^(slope_1*(x1[j]-ec50_1)));
144137
for (i in 1:n2){
@@ -162,16 +155,15 @@ transformed data{
162155
s2 ~ inv_gamma(3,0.5);
163156
s2_ec50_1 ~ inv_gamma(3,2);
164157
s2_ec50_2 ~ inv_gamma(3,2);
158+
165159

166160
// Monotherapies
167-
la_1 ~ beta(.5,.5);
168-
la_2 ~ beta(.5,.5);
161+
la_1 ~ beta(0.5,0.5);
162+
la_2 ~ beta(0.5,0.5);
169163
slope_1 ~ gamma(1,1);
170164
slope_2 ~ gamma(1,1);
171-
ec50_1 ~ normal(beta1,sqrt(s2_ec50_1));
172-
ec50_2 ~ normal(beta2,sqrt(s2_ec50_2));
173-
t1 ~ std_normal();
174-
t2 ~ std_normal();
165+
ec50_1 ~ normal(0,sqrt(s2_ec50_1));
166+
ec50_2 ~ normal(0,sqrt(s2_ec50_2));
175167

176168
// Interaction transformation
177169
b1 ~ gamma(1,1);

0 commit comments

Comments
 (0)