You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: NEWS.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,9 @@
6
6
* added possibility to add different ref line(s) by parameter via
7
7
`ref_value_by_panel` and `ref_value_by_panel_data` function arguments (not in the shiny, app)
8
8
* added and exported `expand_modelframe` function
9
-
* added the possibility to select the shapes manually via `interval_shape` and `bsv_shape` (when shape is mapped to paramname or not)
9
+
* added the possibility to select the shapes manually via `interval_shape` and `bsv_shape`
10
10
* added capability for user to reverse color legend separately via `legend_color_reverse`
11
-
* added capability for user to specify text for legend titles via `interval_legend_title` and `shape_legend_title` as well as text size via `legend_title_size`
11
+
* added capability for user to specify text for legend titles via `interval_legend_title` and `shape_legend_title` as well as to control text size via `legend_title_size`
12
12
13
13
# coveffectsplot 1.0.3
14
14
* fixed a bug when ref_value when not equal 1 affecting y axis limits
Copy file name to clipboardExpand all lines: vignettes/Exposure_Response_Example.Rmd
+79-36Lines changed: 79 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,6 @@ vignette: >
10
10
%\VignetteEngine{knitr::rmarkdown}
11
11
%\VignetteEncoding{UTF-8}
12
12
---
13
-
Here we illustrate the approach using a Binary response linked to exposure (AUC) via a saturating EMAX function. Weight is a covariate on Clearance. We also have a disease severity categorical covariate on EMAX where patient with severe disease have a lower EMAX.
14
13
15
14
```{r, include = FALSE}
16
15
knitr::opts_chunk$set(
@@ -35,6 +34,7 @@ library(patchwork)
35
34
library(ggdist)
36
35
library(ggrepel)
37
36
library(Rcpp)
37
+
library(egg)
38
38
theme_set(theme_bw())
39
39
nsim <- 100 # for vignette to make it run faster otherwise increase to 1000
40
40
#utility function to simulate varying one covariate at a time keeping the rest at the reference
## Specifying an Exposure Response Model using `mrgsolve`
59
-
We code a logistic regression model linked to AUC and Severity of disease.
58
+
## Simulating an Exposure Response Model using `mrgsolve`
59
+
Here we illustrate the communication of covariate effects of a Binary response endpoint (0/1) model. The response is linked to PK exposures represented by the area under the curve of PK concentrations (AUC). The AUCs act by a saturating Emax function on the logit scale while body weight has an effect on PK clearance (CL). Finally, the disease severity is an important covariate on Emax where patients with severe disease have a 50% lower Emax.
60
+
61
+
Key model equations are presented below:
62
+
60
63
The AUC equals Dose/Individual Pharmacokinetic Clearance (CLi) of the Drug. CLi is a function of the population Clearance (CL), the patient's specific Weight and a random between patients variability term.
AUC50 : 7.5 : Area Under the Curve providing half maximal response
82
85
TVBASEP : 0.1 : Baseline Probability of Response
83
86
@@ -116,8 +119,8 @@ simout <- modexprespsim %>%
116
119
mrgsim()%>%
117
120
as.data.frame
118
121
```
119
-
## Probability of Cure
120
-
From the simulation of N=1000 patients we plot the probability of disease Cure versus PK exposures (AUC) for a reference subject with Weight of 70 kg and clinical severity of Not Severe.
122
+
## Visualizing Probability of Cure
123
+
From the simulation of N=1000 patients we plot the probability of disease Cure versus PK exposures (AUC) for a reference subject with Weight of 70 kg and disease severity of "Not Severe".
This figure presents the relationship between the AUC and probability of Cure. The AUCs has been binned into placebo and quartiles. For the placebo and exposure bins, the probability of response was computed and communicated using text of the percentage and a pointinterval showing the 95% CI. The probability by dose level is also shown as diamonds. A fitted logistic regression line is superimposed. In a real data fitting situation, this can constitute a diagnostic plot on how well the proposed logistic fit is adequate to describe the data. The lower part of the figure shows the distributions of AUCs split by Dose level. The numbers constitutes the percent of patients falling into a bin (25% by definition in this plot). This information can become more useful when trying to compare multiple dose levels as illustrated later in this vignette. The number of responders over the total number of patients is shown for each bin using n/N notation. On the bottom axis we communicate the computed bin limits.
212
235
236
+
## Adding Between Subject Variability on Intercept and Showing its Impact on Probabilities
The table and associated plot illustrated the impact of between subject variability on the probability of response on regular and standardized scales.
281
304
282
305
## Computing the Probabilities
283
-
Here we show how the odds and probabilities can be computed. We already know that the distribution of AUC depends on the Dose and on the clearance distributions. The model had five parameters shown in <spanstyle="color: red;">red</span>, the dose, disease severity and weight were covariates and are shown in <spanstyle="color: green;">green</span>. A Change in body weight will trigger a change in Clearance which in turn will control the AUC. To define an odds ratio we need to define a reference odds with reference covariate values Severity = 0 and changes in covariate values for example Severity = 1 (everything else being equal). For nonlinear relationships, in addition to the covariate unit change e.g. 25 mg change of dose it is important to define what reference value we are using e.g. A change from Placebo = 0 mg to 25 mg is not the same as a change from the typical dose of 75 mg increasing it to 100 mg.
284
-
306
+
Next, we show how the odds and probabilities can be computed while varying the covariate values. We already know that the distribution of AUC depends on the Dose and on the clearance distributions. The model had five parameters shown in <spanstyle="color: red;">red</span>, the dose, disease severity and weight were covariates and are shown in <spanstyle="color: green;">green</span>. A Change in body weight will trigger a change in Clearance which in turn will change the AUC. First, we define a reference odds with reference covariate values Severity = 0, Weight = 70 and DOSE = 75. We then vary each covariate keep all the other covariate at reference. For nonlinear relationships (emax), in addition to the covariate unit change e.g. 25 mg change of dose it is important to define what reference value we are using e.g. A change from Placebo = 0 mg to 25 mg is not the same as a change from the typical dose of 75 mg increasing it to 100 mg.
labs(y="Probability of Response", colour="Severity")
354
375
stdprobplot
355
376
```
377
+
The above figure show the raw simulated probabilities split by covariate values. In the next section we show how we can standardize and summarize the probabilities.
From the distributions plot we can appreciate that severity has the biggest impact on the probability of response followed by Dose which an effect that is saturating above 125 mg. Next, we prepare the data and present it using a forest plot.
It is more common to construct a full range (every possible combination) of dose levels and covariate values simulations when visualizing dose/exposure/response curves. In this section we show how to construct such a curve:
513
+
It is more common to construct a full range (every possible combination of dose levels and covariate values) simulations when visualizing dose/exposure/response curves. In this section we show how to construct such a curve:
0 commit comments