envelope.ppmlasso | R Documentation |
This function is analogous to the envelope
function of the spatstat
package.
## S3 method for class 'ppmlasso'
envelope(Y, fun = Kest, ...)
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 |
... |
Other arguments for producing diagnostic plots, as given by the |
See the help file for envelope
in the spatstat
package for further details of simulation envelopes.
Ian W. Renner
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
.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.