Compute the sum of squared errors

ar_compare(ar, pr, get_pr, model, n = 1)

Arguments

ar

the attack rate

pr

next value of the PfPR

get_pr

a function to compute PR, such as F_pr

model

a model

n

the number of times to iterate

Value

the sum of squared errors