diff --git a/articles/biokinetics.html b/articles/biokinetics.html index 7992cc2..242e193 100644 --- a/articles/biokinetics.html +++ b/articles/biokinetics.html @@ -120,9 +120,9 @@

Figure 2
 res <- mod$simulate_population_trajectories()
-#> INFO [2024-10-24 16:59:19] Summarising fits
-#> INFO [2024-10-24 16:59:22] Adjusting by regression coefficients
-#> INFO [2024-10-24 16:59:25] Summarising into quantiles
+#> INFO [2024-11-04 17:38:26] Summarising fits
+#> INFO [2024-11-04 17:38:29] Adjusting by regression coefficients
+#> INFO [2024-11-04 17:38:31] Summarising into quantiles
 head(res)
 #>    time_since_last_exp       me        lo       hi titre_type infection_history
 #>                  <int>    <num>     <num>    <num>     <char>            <char>
@@ -191,11 +191,11 @@ 

Figure 4
 res <- mod$population_stationary_points(n_draws = 2000)
-#> INFO [2024-10-24 16:59:26] Extracting parameters
-#> INFO [2024-10-24 16:59:27] Adjusting by covariates
-#> INFO [2024-10-24 16:59:27] Calculating peak and switch titre values
-#> INFO [2024-10-24 16:59:27] Recovering covariate names
-#> INFO [2024-10-24 16:59:27] Calculating medians
+#> INFO [2024-11-04 17:38:32] Extracting parameters
+#> INFO [2024-11-04 17:38:33] Adjusting by covariates
+#> INFO [2024-11-04 17:38:33] Calculating peak and switch titre values
+#> INFO [2024-11-04 17:38:33] Recovering covariate names
+#> INFO [2024-11-04 17:38:33] Calculating medians
 head(res)
 #>    infection_history titre_type     mu_p     mu_s rel_drop_me  mu_p_me  mu_s_me
 #>               <char>     <char>    <num>    <num>       <num>    <num>    <num>
@@ -261,15 +261,15 @@ 

Figure 5
 res <- mod$simulate_individual_trajectories(n_draws = 250)
-#> INFO [2024-10-24 16:59:28] Extracting parameters
-#> INFO [2024-10-24 16:59:31] Simulating individual trajectories
-#> INFO [2024-10-24 16:59:36] Recovering covariate names
-#> INFO [2024-10-24 16:59:36] Calculating exposure days. Adjusting exposures by 0 days
-#> INFO [2024-10-24 16:59:39] Resampling
+#> INFO [2024-11-04 17:38:34] Extracting parameters
+#> INFO [2024-11-04 17:38:37] Simulating individual trajectories
+#> INFO [2024-11-04 17:38:41] Recovering covariate names
+#> INFO [2024-11-04 17:38:41] Calculating exposure days. Adjusting exposures by 0 days
+#> INFO [2024-11-04 17:38:45] Resampling
 #> Registered S3 method overwritten by 'mosaic':
 #>   method                           from   
 #>   fortify.SpatialPolygonsDataFrame ggplot2
-#> INFO [2024-10-24 16:59:49] Summarising into population quantiles
+#> INFO [2024-11-04 17:38:54] Summarising into population quantiles
 head(res)
 #>    calendar_day titre_type       me       lo       hi time_shift
 #>          <IDat>     <char>    <num>    <num>    <num>      <num>
@@ -348,72 +348,72 @@ 

Figure 5 shift <- time_shift_values[index] mod$simulate_individual_trajectories(n_draws = 50, time_shift = shift) }) -#> INFO [2024-10-24 16:59:50] Extracting parameters -#> INFO [2024-10-24 16:59:53] Simulating individual trajectories -#> INFO [2024-10-24 16:59:54] Recovering covariate names -#> INFO [2024-10-24 16:59:54] Calculating exposure days. Adjusting exposures by -75 days -#> INFO [2024-10-24 16:59:55] Resampling -#> INFO [2024-10-24 16:59:57] Summarising into population quantiles -#> INFO [2024-10-24 16:59:57] Extracting parameters -#> INFO [2024-10-24 17:00:01] Simulating individual trajectories -#> INFO [2024-10-24 17:00:01] Recovering covariate names -#> INFO [2024-10-24 17:00:01] Calculating exposure days. Adjusting exposures by -60 days -#> INFO [2024-10-24 17:00:02] Resampling -#> INFO [2024-10-24 17:00:04] Summarising into population quantiles -#> INFO [2024-10-24 17:00:04] Extracting parameters -#> INFO [2024-10-24 17:00:08] Simulating individual trajectories -#> INFO [2024-10-24 17:00:08] Recovering covariate names -#> INFO [2024-10-24 17:00:08] Calculating exposure days. Adjusting exposures by -45 days -#> INFO [2024-10-24 17:00:09] Resampling -#> INFO [2024-10-24 17:00:10] Summarising into population quantiles -#> INFO [2024-10-24 17:00:11] Extracting parameters -#> INFO [2024-10-24 17:00:14] Simulating individual trajectories -#> INFO [2024-10-24 17:00:15] Recovering covariate names -#> INFO [2024-10-24 17:00:15] Calculating exposure days. Adjusting exposures by -30 days -#> INFO [2024-10-24 17:00:15] Resampling -#> INFO [2024-10-24 17:00:17] Summarising into population quantiles -#> INFO [2024-10-24 17:00:18] Extracting parameters -#> INFO [2024-10-24 17:00:21] Simulating individual trajectories -#> INFO [2024-10-24 17:00:22] Recovering covariate names -#> INFO [2024-10-24 17:00:22] Calculating exposure days. Adjusting exposures by -15 days -#> INFO [2024-10-24 17:00:22] Resampling -#> INFO [2024-10-24 17:00:24] Summarising into population quantiles -#> INFO [2024-10-24 17:00:25] Extracting parameters -#> INFO [2024-10-24 17:00:28] Simulating individual trajectories -#> INFO [2024-10-24 17:00:29] Recovering covariate names -#> INFO [2024-10-24 17:00:29] Calculating exposure days. Adjusting exposures by 0 days -#> INFO [2024-10-24 17:00:29] Resampling -#> INFO [2024-10-24 17:00:31] Summarising into population quantiles -#> INFO [2024-10-24 17:00:32] Extracting parameters -#> INFO [2024-10-24 17:00:35] Simulating individual trajectories -#> INFO [2024-10-24 17:00:36] Recovering covariate names -#> INFO [2024-10-24 17:00:36] Calculating exposure days. Adjusting exposures by 15 days -#> INFO [2024-10-24 17:00:37] Resampling -#> INFO [2024-10-24 17:00:39] Summarising into population quantiles -#> INFO [2024-10-24 17:00:39] Extracting parameters -#> INFO [2024-10-24 17:00:43] Simulating individual trajectories -#> INFO [2024-10-24 17:00:43] Recovering covariate names -#> INFO [2024-10-24 17:00:43] Calculating exposure days. Adjusting exposures by 30 days -#> INFO [2024-10-24 17:00:44] Resampling -#> INFO [2024-10-24 17:00:46] Summarising into population quantiles -#> INFO [2024-10-24 17:00:46] Extracting parameters -#> INFO [2024-10-24 17:00:50] Simulating individual trajectories -#> INFO [2024-10-24 17:00:50] Recovering covariate names -#> INFO [2024-10-24 17:00:50] Calculating exposure days. Adjusting exposures by 45 days -#> INFO [2024-10-24 17:00:51] Resampling -#> INFO [2024-10-24 17:00:53] Summarising into population quantiles -#> INFO [2024-10-24 17:00:53] Extracting parameters -#> INFO [2024-10-24 17:00:57] Simulating individual trajectories -#> INFO [2024-10-24 17:00:57] Recovering covariate names -#> INFO [2024-10-24 17:00:57] Calculating exposure days. Adjusting exposures by 60 days -#> INFO [2024-10-24 17:00:58] Resampling -#> INFO [2024-10-24 17:00:59] Summarising into population quantiles -#> INFO [2024-10-24 17:01:00] Extracting parameters -#> INFO [2024-10-24 17:01:03] Simulating individual trajectories -#> INFO [2024-10-24 17:01:04] Recovering covariate names -#> INFO [2024-10-24 17:01:04] Calculating exposure days. Adjusting exposures by 75 days -#> INFO [2024-10-24 17:01:04] Resampling -#> INFO [2024-10-24 17:01:06] Summarising into population quantiles +#> INFO [2024-11-04 17:38:56] Extracting parameters +#> INFO [2024-11-04 17:38:59] Simulating individual trajectories +#> INFO [2024-11-04 17:39:00] Recovering covariate names +#> INFO [2024-11-04 17:39:00] Calculating exposure days. Adjusting exposures by -75 days +#> INFO [2024-11-04 17:39:00] Resampling +#> INFO [2024-11-04 17:39:02] Summarising into population quantiles +#> INFO [2024-11-04 17:39:03] Extracting parameters +#> INFO [2024-11-04 17:39:06] Simulating individual trajectories +#> INFO [2024-11-04 17:39:06] Recovering covariate names +#> INFO [2024-11-04 17:39:06] Calculating exposure days. Adjusting exposures by -60 days +#> INFO [2024-11-04 17:39:07] Resampling +#> INFO [2024-11-04 17:39:09] Summarising into population quantiles +#> INFO [2024-11-04 17:39:09] Extracting parameters +#> INFO [2024-11-04 17:39:12] Simulating individual trajectories +#> INFO [2024-11-04 17:39:13] Recovering covariate names +#> INFO [2024-11-04 17:39:13] Calculating exposure days. Adjusting exposures by -45 days +#> INFO [2024-11-04 17:39:13] Resampling +#> INFO [2024-11-04 17:39:15] Summarising into population quantiles +#> INFO [2024-11-04 17:39:16] Extracting parameters +#> INFO [2024-11-04 17:39:19] Simulating individual trajectories +#> INFO [2024-11-04 17:39:20] Recovering covariate names +#> INFO [2024-11-04 17:39:20] Calculating exposure days. Adjusting exposures by -30 days +#> INFO [2024-11-04 17:39:20] Resampling +#> INFO [2024-11-04 17:39:22] Summarising into population quantiles +#> INFO [2024-11-04 17:39:23] Extracting parameters +#> INFO [2024-11-04 17:39:26] Simulating individual trajectories +#> INFO [2024-11-04 17:39:26] Recovering covariate names +#> INFO [2024-11-04 17:39:26] Calculating exposure days. Adjusting exposures by -15 days +#> INFO [2024-11-04 17:39:27] Resampling +#> INFO [2024-11-04 17:39:29] Summarising into population quantiles +#> INFO [2024-11-04 17:39:29] Extracting parameters +#> INFO [2024-11-04 17:39:33] Simulating individual trajectories +#> INFO [2024-11-04 17:39:33] Recovering covariate names +#> INFO [2024-11-04 17:39:33] Calculating exposure days. Adjusting exposures by 0 days +#> INFO [2024-11-04 17:39:34] Resampling +#> INFO [2024-11-04 17:39:36] Summarising into population quantiles +#> INFO [2024-11-04 17:39:36] Extracting parameters +#> INFO [2024-11-04 17:39:39] Simulating individual trajectories +#> INFO [2024-11-04 17:39:40] Recovering covariate names +#> INFO [2024-11-04 17:39:40] Calculating exposure days. Adjusting exposures by 15 days +#> INFO [2024-11-04 17:39:40] Resampling +#> INFO [2024-11-04 17:39:42] Summarising into population quantiles +#> INFO [2024-11-04 17:39:43] Extracting parameters +#> INFO [2024-11-04 17:39:46] Simulating individual trajectories +#> INFO [2024-11-04 17:39:46] Recovering covariate names +#> INFO [2024-11-04 17:39:46] Calculating exposure days. Adjusting exposures by 30 days +#> INFO [2024-11-04 17:39:47] Resampling +#> INFO [2024-11-04 17:39:49] Summarising into population quantiles +#> INFO [2024-11-04 17:39:49] Extracting parameters +#> INFO [2024-11-04 17:39:52] Simulating individual trajectories +#> INFO [2024-11-04 17:39:53] Recovering covariate names +#> INFO [2024-11-04 17:39:53] Calculating exposure days. Adjusting exposures by 45 days +#> INFO [2024-11-04 17:39:53] Resampling +#> INFO [2024-11-04 17:39:55] Summarising into population quantiles +#> INFO [2024-11-04 17:39:56] Extracting parameters +#> INFO [2024-11-04 17:39:59] Simulating individual trajectories +#> INFO [2024-11-04 17:40:00] Recovering covariate names +#> INFO [2024-11-04 17:40:00] Calculating exposure days. Adjusting exposures by 60 days +#> INFO [2024-11-04 17:40:00] Resampling +#> INFO [2024-11-04 17:40:02] Summarising into population quantiles +#> INFO [2024-11-04 17:40:02] Extracting parameters +#> INFO [2024-11-04 17:40:06] Simulating individual trajectories +#> INFO [2024-11-04 17:40:06] Recovering covariate names +#> INFO [2024-11-04 17:40:06] Calculating exposure days. Adjusting exposures by 75 days +#> INFO [2024-11-04 17:40:07] Resampling +#> INFO [2024-11-04 17:40:09] Summarising into population quantiles combined_data <- data.table::data.table(data.table::rbindlist(results_list))

Plotting the median values:

diff --git a/index.html b/index.html index 54d4988..178afed 100644 --- a/index.html +++ b/index.html @@ -12,7 +12,7 @@ - + epikinetics: Biomarker Kinetics Modelling — epikinetics-package • epikineticsepikinetics: Biomarker Kinetics Modelling — epikinetics-package • epikinetics @@ -56,7 +56,7 @@

epikinetics: Biomarker Kinetics Modelling

-

Fit kinetic curves to biomarker data, using a Bayesian hierarchical model

+

Fit kinetic curves to biomarker data, using a Bayesian hierarchical model.

diff --git a/reference/index.html b/reference/index.html index 21fc473..f1fa73b 100644 --- a/reference/index.html +++ b/reference/index.html @@ -73,6 +73,14 @@

All functions convert_log2_scale_inverse()

Invert base 2 log scale conversion

+ +

plot(<biokinetics_population_trajectories>)

+ +

Plot method for "biokinetics_population_trajectories" class

+ +

plot(<biokinetics_priors>)

+ +

Simulate biomarker kinetics predicted by the given biokinetics priors and optionally compare to a dataset.