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

View source: R/locmincon.R

with.locminconR Documentation

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 class 'locmincon'
with(data, ...)

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

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.

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.

Value

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

Author(s)

\adrian

.

See Also

ssf

Examples

  example(locmincon)
  with(fit, kappa * sigma2)
  example(locmincon)
  with(fit, kappa * sigma2)

spatstat.local documentation built on Nov. 13, 2022, 9:06 a.m.