dts_init_by_pr.Rd
Compute the sum of squared errors
dts_init_by_pr(pr, model, get_pr, n = 365, tol = 1e-08)
a PR time series
a model
a functrion to compute PR, such as F_pr
the number of times to iterate
the tolerance
the model, initialized