Compute the sum of squared errors

dts_pr2ar_step(pr, model, get_pr, n = 365, tol = 1e-08)

Arguments

pr

next value of the PfPR

model

a model

get_pr

a function to compute PR, such as F_pr

n

the number of times to iterate

tol

the tolerance

Value

the sum of squared errors