Load a cross-sectional antibody survey data set
Arguments
- file_path
path to an RDS file containing a cross-sectional antibody survey data set, stored as a
data.frame()
or tibble::tbl_df- ...
Arguments passed on to
as_pop_data
data
antigen_isos
character()
vector of antigen isotypes to be used in analysesage
a
character()
identifying the age columnid
a
character()
identifying the id columnvalue
a
character()
identifying the value columnstandardize
a
logical()
to determine standardization of columns
Value
a pop_data
object (a tibble::tbl_df with extra attributes)
Examples
xs_data <- load_pop_data(serocalculator_example("example_pop_data.rds"))
print(xs_data)
#> # A tibble: 200 × 8
#> id Country cluster catchment age ageCat antigen_iso value
#> <chr> <chr> <chr> <chr> <dbl> <chr> <chr> <dbl>
#> 1 P1 Pakistan Lyari Other kgh 13.2 5-15 HlyE_IgA 0.568
#> 2 P3 Pakistan Gillani Railway Stat… aku 18 16+ HlyE_IgA 5.69
#> 3 P5 Pakistan Gillani Railway Stat… aku 7.3 5-15 HlyE_IgA 1.23
#> 4 P7 Pakistan Civic Centre aku 2.6 <5 HlyE_IgA 1.08
#> 5 P9 Pakistan Gillani Railway Stat… aku 3.9 <5 HlyE_IgA 1.43
#> 6 P11 Pakistan Civic Centre aku 13 5-15 HlyE_IgA 3.06
#> 7 P13 Pakistan Machar Colony kgh 11 5-15 HlyE_IgA 0.779
#> 8 P15 Pakistan Machar Colony kgh 12 5-15 HlyE_IgA 1.90
#> 9 P17 Pakistan Machar Colony kgh 16 16+ HlyE_IgA 1.41
#> 10 P19 Pakistan Gillani Railway Stat… aku 14.4 5-15 HlyE_IgA 3.10
#> # ℹ 190 more rows