
Last chance! 50% off unlimited learning
Sale ends in
twinSIR
or twinstim
residuals
methods for classes
"twinSIR"
and "twinstim"
) such that the transformed
residuals should be uniformly distributed if the fitted model
well describes the true conditional intensity function. Graphically
check this using ks.plot.unif
.
The transformation for the residuals tau
is
1 - exp(-diff(c(0,tau)))
(cf. Ogata, 1988).
Another plot inspects the serial correlation between the transformed
residuals (scatterplot between u_i and u_{i+1}).checkResidualProcess(object, plot = 1:2, mfrow = c(1,length(plot)), ...)
plot
index 1
corresponds to a ks.plot.unif
to check for deviationpar
.ks.plot.unif
.plot = TRUE
) with the following
components:
[object Object],[object Object],[object Object]ks.plot.unif
and the
residuals
-method for classes
"twinSIR"
and "twinstim"
.## load the twinSIR() fit
data("foofit")
checkResidualProcess(foofit)
Run the code above in your browser using DataLab