powered by
Calculates all the leverage and influence measures described in influence.ppm, leverage.ppm and dfbetas.ppm.
influence.ppm
leverage.ppm
dfbetas.ppm
ppmInfluence(fit, what = c("leverage", "influence", "dfbetas"), …, iScore = NULL, iHessian = NULL, iArgs = NULL, drop = FALSE, fitname = NULL)
A fitted point process model of class "ppm".
"ppm"
Character vector specifying which quantities are to be calculated. Default is to calculate all quantities.
Ignored.
Components of the score vector and Hessian matrix for the irregular parameters, if required. See Details.
List of extra arguments for the functions iScore, iHessian if required.
iScore
iHessian
Logical. Whether to include (drop=FALSE) or exclude (drop=TRUE) contributions from quadrature points that were not used to fit the model.
drop=FALSE
drop=TRUE
Optional character string name for the fitted model fit.
fit
A list containing the leverage and influence measures specified by what.
what
This function calculates all the leverage and influence measures described in influence.ppm, leverage.ppm and dfbetas.ppm.
When analysing large datasets, the user can call ppmInfluence to perform the calculations efficiently, then extract the leverage and influence values as desired.
ppmInfluence
leverage.ppm, influence.ppm, dfbetas.ppm
# NOT RUN { X <- rpoispp(function(x,y) { exp(3+3*x) }) fit <- ppm(X ~ x+y) fI <- ppmInfluence(fit) fI$influence fI$leverage fI$dfbetas # }
Run the code above in your browser using DataLab