Learn R Programming

latticeDensity (version 1.2.7)

Density Estimation and Nonparametric Regression on Irregular Regions

Description

Functions that compute the lattice-based density and regression estimators for two-dimensional regions with irregular boundaries and holes. The density estimation technique is described in Barry and McIntyre (2011) , while the non-parametric regression technique is described in McIntyre and Barry (2018) .

Copy Link

Version

Install

install.packages('latticeDensity')

Monthly Downloads

122

Version

1.2.7

License

GPL-2

Maintainer

Ronald Barry

Last Published

July 28th, 2025

Functions in latticeDensity (1.2.7)

plot.nodeFillingOutput

Plot a nodeFillingOutput object.
nparExample

Example boundary with a grid of locations
makeTmatrix

Create the transition matrix for the diffusion.
removeHole

Removes holes from the region prior to density estimation.
predict.NparRegOut

Predictions at data locations from lattice-based non-parametric regression.
polygon1

Example boundary with causeway
plot.varianceMapOut

Plot the standard error map.
varianceMap

Spatial variance for the regression smoother.
areaRegionExample

A region with two holes
Tkp

Compute the vector T^k*p
createDensity

Generates a density using random walks on a lattice.
crossvalDensity

UBC crossvalidation for the lattice-based density estimator.
crossvalNparReg

Crossvalidation for non-parametric regression.
deletedResid

Deleted residuls for non-parametric regression.
addObservations

Input observations for use in the lattice-based density estimator
createNparReg

Performs nonparametric regression on irregular regions.
addQuantVar

Input data for Nonparametric Regression smoothing.
areaRegion

Computes area of a region
plot.formLatticeOutput

Plot the lattice.
editLattice

Add or remove links in the lattice
plot.densityOut

Plot the density map
homerange

Produces a homerange map.
nodeFilling

Produces a grid of locations inside the region boundary.
formLattice

Builds a neighbor structure on the nodes.
plot.NparRegOut

Plot the non-parametric regression surface.