# envelope.ppmlasso: Calculates simulation envelopes for goodness-of-fit In ppmlasso: Point Process Models with LASSO-Type Penalties

 envelope.ppmlasso R Documentation

## Calculates simulation envelopes for goodness-of-fit

### Description

This function is analogous to the `envelope` function of the `spatstat` package.

### Usage

``````## S3 method for class 'ppmlasso'
envelope(Y, fun = Kest, ...)
``````

### Arguments

 `Y` A fitted regularisation path of point process models. The simulation envelopes will be calculated for the model that optimises the given criterion. `fun` The summary function to be computed for the given point process model. See the help file for the `envelope` function of the `spatstat` package for more details. `...` Other arguments for producing diagnostic plots, as given by the `envelope` function of the `spatstat` package.

### Details

See the help file for `envelope` in the `spatstat` package for further details of simulation envelopes.

Ian W. Renner

### References

Baddeley, A.J. & Turner, R. (2005). Spatstat: an R package for analyzing spatial point patterns. Journal of Statistical Software 12, 1-42.

`diagnose.ppmlasso`, for residual plots inherited from `spatstat`.

### Examples

``````data(BlueMountains)
sub.env = BlueMountains\$env[BlueMountains\$env\$Y > 6270 & BlueMountains\$env\$X > 300,]
sub.euc = BlueMountains\$eucalypt[BlueMountains\$eucalypt\$Y > 6270 & BlueMountains\$eucalypt\$X > 300,]
ppm.form = ~poly(FC, TMP_MIN, TMP_MAX, RAIN_ANN, degree = 2) + poly(D_MAIN_RDS, D_URBAN, degree = 2)
ppm.fit  = ppmlasso(ppm.form, sp.xy = sub.euc, env.grid = sub.env, sp.scale = 1, n.fits = 20,
writefile = FALSE)
envelope(ppm.fit, Kinhom, nsim = 20)
``````

ppmlasso documentation built on May 29, 2024, 7:12 a.m.