R: Scott's Rule for Bandwidth Selection for Kernel Density

bw.scott {spatstat} | R Documentation

## Scott's Rule for Bandwidth Selection for Kernel Density

### Description

Use Scott's rule of thumb to determine the smoothing bandwidth for the kernel estimation of point process intensity.

### Usage

       bw.scott(X)

### Arguments

`X` | A point pattern (object of class `"ppp"`).

### Details

This function selects a bandwidth `sigma` for the kernel estimator of point process intensity computed by `density.ppp`.

The bandwidth σ is computed by the rule of thumb of Scott (1992, page 152). It is very fast to compute.

This rule is designed for density estimation, and typically produces a larger bandwidth than `bw.diggle`. It is useful for estimating gradual trend.

### Value

A numerical vector of two elements giving the selected bandwidths in the `x` and `y` directions.

### Author(s)

Adrian Baddeley Adrian.Baddeley@curtin.edu.au

and Rolf Turner r.turner@auckland.ac.nz

### References

Scott, D.W. (1992) Multivariate Density Estimation. Theory, Practice and Visualization. New York: Wiley.

### See Also

`density.ppp`, `bw.diggle`, `bw.ppl`, `bw.frac`.

### Examples

      data(lansing)
      attach(split(lansing))
      b <- bw.scott(hickory)
      b

       plot(density(hickory, b))

[Package spatstat version 1.54-0 Index]