The function pseudoR2 is generic, with methods
for fitted point process models of class "ppm" and
"lppm".
This function computes McFadden's pseudo-Rsquared
$$
R^2 = 1 - \frac{D}{D_0}
$$
where \(D\) is the deviance of the fitted model object,
and \(D_0\) is the deviance of the null model
(obtained by refitting object
using the trend formula ~1).
Deviance is defined as twice the negative log-likelihood
or log-pseudolikelihood.