Learn R Programming

spatstat.local (version 5.1-0)

with.locmincon: Evaluate an Expression for a Locally Fitted Model

Description

Given a locally-fitted Cox or cluster point process model, evaluate an expression involving the fitted cluster parameters.

Usage

# S3 method for locmincon
with(data, ...)

# S3 method for loccit with(data, ...)

Value

An object of class "ssf" or a numeric vector.

Arguments

data

An object of class "locmincon" or "loccit" representing a locally-fitted Cox or cluster point process model.

...

Arguments passed to with.default specifying the expression to be evaluated.

Author

Adrian Baddeley Adrian.Baddeley@curtin.edu.au.

Details

These are method for the generic function with for the classes "locmincon" and "loccit".

An object of class "locmincon" or "loccit" represents a locally-fitted Cox or cluster point process model. It contains a data frame which provides estimates of the cluster parameters at each of the data points of the original point pattern dataset.

The expression specified by ... will be evaluated in this dataframe. If the result of evaluation is a data frame with one row for each data point, or a numeric vector with one entry for each data point, then the result will be an object of class "ssf" containing this information. Otherwise, the result will be a numeric vector.

See Also

ssf

Examples

Run this code
  example(locmincon)
  with(fit, kappa * sigma2)
  example(locmincon)
  with(fit, kappa * sigma2)

Run the code above in your browser using DataLab