Skip to contents

An object carrying the class has already been checked, and the epidist_data methods re-check it whenever it is modified, so nothing is done here.

Usage

# S3 method for class 'epidist_estimates_data'
as_epidist_estimates_data(data, ...)

Arguments

data

The data to convert

...

Not used in this method.

Examples

estimates <- epidist_estimates_summaries(
  "A",
  mean = 7.5, n = 120, trunc_adjusted = TRUE
)
#>  No `pwindow` column supplied, assuming a censoring window of 1 (daily
#>   reporting) for every study.
#>  No `swindow` column supplied, assuming a censoring window of 1 (daily
#>   reporting) for every study.
#>  No relative_obs_time column supplied, assuming no observation time limit (no
#>   right truncation) for every study.
#>  No cens_adjusted column supplied, assuming every study used naive integer
#>   date differences without a censoring adjustment.
#>  No max_delay column supplied, using the delay beyond which 1% of the second
#>   moment of a lognormal matched to each study's summaries lies (at least 10 and
#>   at most twenty times the largest reported value, in whole secondary windows)
#>   as the grid cutoff, or five times the largest reported value where nothing
#>   can be matched. Raise it if the delay has a longer tail than that, and lower
#>   it to speed up fitting.
identical(as_epidist_estimates_data(estimates), estimates)
#> [1] TRUE