Given a fitted point process model on a linear network, calculate the pseudo-R-squared value, which measures the fraction of variation in the data that is explained by the model.
Fitted point process model on a linear network.
An object of class
Logical value indicating whether to retain offset terms in the model when computing the deviance difference. See Details.
Additional arguments passed to
pseudoR2 is generic, with methods
for fitted point process models
This function computes McFadden's pseudo-Rsquared
R^2 = 1 - D/D0
where D is the deviance of the fitted model
and D0 is the deviance of the null model.
Deviance is defined as twice the negative log-likelihood
The null model is usually obtained by re-fitting the model
using the trend formula
However if the original model formula included
keepoffset=TRUE (the default),
then the null model formula consists of these offset terms. This
ensures that the
pseudoR2 value is non-negative.
A single numeric value.
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.