print.seroincidence.by {serocalculator}R Documentation

Print Method for seroincidence.by Object

Description

Custom print() function to show output of the seroincidence calculator est.incidence.by().

Usage

## S3 method for class 'seroincidence.by'
print(x, ...)

Arguments

x

A list containing output of function est.incidence.by().

...

Additional arguments affecting the summary produced.

Value

A list containing the output of the function est.incidence.by().

Examples




library(tidyverse)

xs_data <- load_pop_data("https://osf.io/download//n6cp3/") %>%
  clean_pop_data()

curve <- load_curve_params("https://osf.io/download/rtw5k/") %>%
  filter(antigen_iso %in% c("HlyE_IgA", "HlyE_IgG")) %>%
  slice(1:100, .by = antigen_iso) # Reduce dataset for the purposes of this example

noise <- load_noise_params("https://osf.io/download//hqy4v/")


est2 <- est.incidence.by(
  strata = c("catchment"),
  pop_data = xs_data %>% filter(Country == "Pakistan"),
  curve_params = curve,
  noise_params = noise %>% filter(Country == "Pakistan"),
  antigen_isos = c("HlyE_IgG", "HlyE_IgA"),
  #num_cores = 8 # Allow for parallel processing to decrease run time
)

print(est2)



[Package serocalculator version 1.0.3 Index]