predict.ppmlasso | R Documentation |

Given a fitted regularisation path produced by `ppmlasso`

, this function will predict the intensity for a new
set of data.

```
## S3 method for class 'ppmlasso'
predict(object, ..., newdata, interactions = NA)
```

`object` |
A fitted regularisation path produced by |

`...` |
Additional arguments impacting the prediction calculations. |

`newdata` |
A data frame of new environmental data for which predicted intensities are computed. |

`interactions` |
A vector of point interactions for predictions of area-interaction models. |

A vector of predicted intensities corresponding to the environmental data provided in the `newdata`

argument.

Ian W. Renner

`ppmlasso`

for fitting a regularisation path of point process models.

```
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, raw = TRUE)
ppm.fit = ppmlasso(ppm.form, sp.xy = sub.euc, env.grid = sub.env, sp.scale = 1, n.fits = 20,
writefile = FALSE)
pred.mu = predict(ppm.fit, newdata = sub.env)
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.