Compute the sum of squared errors

dts_pr2ar_ts(pr, model, get_pr, tol = 1e-08)

Arguments

pr

a PR time series

model

a model

get_pr

a function to compute PR, such as F_pr

tol

the tolerance

Value

a vector of attack rates, as a time series