Build a specific column of the delay distribution matrix

.get_delay_matrix_column(
  recent_counts_distribution,
  fit = "none",
  col_number,
  N,
  return_fitted_distribution = FALSE
)

Arguments

recent_counts_distribution

numeric vector of report delays, as used in get_matrix_from_empirical_delay_distr

fit

string. Can be either "none" or "gamma". Specifies the type of fitting applied to the computed column

col_number

positive integer. The index the computed column has in the delay matrix

N

positive integer. Size of delay matrix.

return_fitted_distribution

boolean. If TRUE, the function also returns the gamma distribution that was fitted to the respective column.

Value

If return_fitted_distribution = FALSE, returns the col_numberth column of the delay matrix, based on the vector of report delays given. If return_fitted_distribution = TRUE, it returns a list with two elements: column - delay matrix column as described above, and distribution - the delay distribution that was fitted to the column.