Compute the sum of squared errors

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

Arguments

pr

a PR time series

model

a model

get_pr

a functrion to compute PR, such as F_pr

n

the number of times to iterate

tol

the tolerance

Value

the model, initialized