-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #314 from UCD-SERG/test-data
- added test data
- Loading branch information
Showing
16 changed files
with
256 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#' @title Small example of noise parameters for typhoid | ||
#' | ||
#' @description A subset of noise parameter estimates from the SEES study, | ||
#' for examples and testing. | ||
#' | ||
#' @format ## `example_noise_params_pk` | ||
#' A `curve_params` object (from [as_curve_params()]) with 4 rows and 7 columns: | ||
#' \describe{ | ||
#' \item{antigen_iso}{which antigen and isotype are being measured | ||
#' (data is in long format)} | ||
#' \item{Country}{Location for which the noise parameters were estimated} | ||
#' \item{y.low}{Lower limit of detection} | ||
#' \item{eps}{Measurement noise, defined by a CV (coefficient of variation) | ||
#' as the ratio of the standard deviation to the mean for replicates. | ||
#' Note that the CV should ideally be measured across plates | ||
#' rather than within the same plate.} | ||
#' \item{nu}{Biological noise: error from | ||
#' cross-reactivity to other antibodies. | ||
#' It is defined as the 95th percentile of | ||
#' the distribution of antibody responses to the antigen-isotype | ||
#' in a population with no exposure.} | ||
#' \item{y.high}{Upper limit of detection} | ||
#' \item{Lab}{Lab for which noise was estimated.} | ||
#' } | ||
#' @source <https://osf.io/rtw5k> | ||
"example_noise_params_pk" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#' Small example of antibody response curve parameters for typhoid | ||
#' | ||
#' A subset of data from the SEES study, for examples and testing. | ||
#' | ||
#' @format ## `typhoid_curves_nostrat_100` | ||
#' A `curve_params` object (from [as_curve_params()]) with 500 rows and 7 | ||
#' columns: | ||
#' \describe{ | ||
#' \item{antigen_iso}{which antigen and isotype are being measured | ||
#' (data is in long format)} | ||
#' \item{iter}{MCMC iteration} | ||
#' \item{y0}{Antibody concentration at t = 0 (start of active infection)} | ||
#' \item{y1}{Antibody concentration at t = `t1` (end of active infection)} | ||
#' \item{t1}{Duration of active infection} | ||
#' \item{alpha}{Antibody decay rate coefficient} | ||
#' \item{r}{Antibody decay rate exponent parameter} | ||
#' } | ||
#' @source <https://osf.io/rtw5k> | ||
"typhoid_curves_nostrat_100" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#' Small example cross-sectional data set | ||
#' | ||
#' A subset of data from the SEES data, for examples and testing. | ||
#' | ||
#' @format ## `sees_pop_data_pk_100` | ||
#' A `pop_data` object (from [as_pop_data()]) with 200 rows and 8 columns: | ||
#' \describe{ | ||
#' \item{id}{Observation ID} | ||
#' \item{Country}{Country where the participant was living} | ||
#' \item{cluster}{survey sampling cluster} | ||
#' \item{catchment}{survey catchment area} | ||
#' \item{age}{participant's age when sampled, in years} | ||
#' \item{antigen_iso}{which antigen and isotype are being measured | ||
#' (data is in long format)} | ||
#' \item{value}{concentration of antigen isotype, in ELISA units} | ||
#' } | ||
#' @source <https://osf.io/n6cp3> | ||
"sees_pop_data_pk_100" | ||
|
||
#' Small example cross-sectional data set | ||
#' | ||
#' A subset of data from the SEES data, for examples and testing. | ||
#' | ||
#' @format ## `sees_pop_data_pk_100_old_names` | ||
#' A `pop_data` object (from [as_pop_data()]) with 200 rows and 8 columns: | ||
#' \describe{ | ||
#' \item{index_id}{Observation ID} | ||
#' \item{Country}{Country where the participant was living} | ||
#' \item{cluster}{survey sampling cluster} | ||
#' \item{catchment}{survey catchment area} | ||
#' \item{Age}{participant's age when sampled, in years} | ||
#' \item{antigen_iso}{which antigen and isotype are being measured | ||
#' (data is in long format)} | ||
#' \item{result}{concentration of antigen isotype, in ELISA units} | ||
#' } | ||
#' @source <https://osf.io/n6cp3> | ||
"sees_pop_data_pk_100_old_names" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
example_noise_params_pk <- | ||
load_noise_params("https://osf.io/download//hqy4v/") %>% | ||
filter(Country == "Pakistan") | ||
|
||
usethis::use_data(example_noise_params_pk, overwrite = TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
sees_pop_data_pk_100 <- load_pop_data( | ||
file_path = "https://osf.io/download//n6cp3/", | ||
age = "Age", | ||
value = "result", | ||
id = "index_id", | ||
standardize = TRUE | ||
) %>% | ||
filter(Country == "Pakistan") %>% | ||
slice_head(n = 100, by = antigen_iso) | ||
|
||
usethis::use_data(sees_pop_data_pk_100, overwrite = TRUE) | ||
|
||
sees_pop_data_pk_100_old_names <- load_pop_data( | ||
file_path = "https://osf.io/download//n6cp3/", | ||
age = "Age", | ||
value = "result", | ||
id = "index_id", | ||
standardize = FALSE | ||
) %>% | ||
filter(Country == "Pakistan") %>% | ||
slice_head(n = 100, by = antigen_iso) | ||
|
||
usethis::use_data(sees_pop_data_pk_100_old_names, overwrite = TRUE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
typhoid_curves_nostrat_100 <- | ||
load_curve_params("https://osf.io/download/rtw5k/") %>% | ||
dplyr::filter(iter %in% 1:100) | ||
|
||
usethis::use_data(typhoid_curves_nostrat_100, overwrite = TRUE) |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.