# Example 1: Standard usage
delay_pmf <- estimate_delay(
reporting_triangle = example_reporting_triangle
)
delay_pmf
# Example 2: Using data with downward corrections (negatives preserved)
# Low-level functions process triangles as-is without preprocessing
delay_pmf_negative <- estimate_delay(
reporting_triangle = example_downward_corr_rt,
n = 5
)
delay_pmf_negative
# Example 3: Preprocess explicitly before estimation if needed
preprocessed_triangle <- preprocess_negative_values(example_downward_corr_rt)
delay_pmf_preprocessed <- estimate_delay(
reporting_triangle = preprocessed_triangle,
n = 5
)
delay_pmf_preprocessed
Run the code above in your browser using DataLab