|
Algorithm 2 Virtual individual generation: reduced individual variance. Takes as input posterior draws of in Equation (2) and
|
-
1:
procedure VirtualIndividualReducedVariance ()
-
2:
For all posterior draws, shrink towards the grand mean: where is the posterior mean
-
3:
For all posterior draws, shrink towards the grand mean: where is the posterior mean
-
4:
Uniformly sample a set of random values from the variance-reduced posterior draw set
-
5:
Uniformly sample a set of random values from the posterior draw set
-
6:
Sample from a kernel density approximation of empirical distribution using inverse transform sampling (see [30])
-
7:
Calculate where indicates the median value of the empirical distribution
-
8:
Calculate
-
9:
Draw a value of
-
10:
Use to calculate () and () for that individual
-
11:
If is less than half the minimum in estimates from [22], reject and call VirtualIndividualReducedVariance
-
12:
If is greater than 1.5 times the maximum in estimates from [22], reject and call VirtualIndividualReducedVariance
-
13:
return which characterize a dose-response curve
-
14:
end procedure
|