bw_hscv: Smoothed cross-validation bandwidth selector.

View source: R/bw_hscv.R

bw_hscvR Documentation

Smoothed cross-validation bandwidth selector.

Description

A simple wrapper for the ks::Hscv function.

Usage

bw_hscv(x)

Arguments

x

2d matrix of data values.

Value

A numeric vector of estimated x and y bandwidths. Must subset your data if you wish to obtain group specific bandwidths.

Author(s)

Shannon E. Albeke, Wyoming Geographic Information Science Center, University of Wyoming

Examples

data("rodents")
# Subset the data for a single species
spec1<- rodents[rodents$Species == "Species1", ]
# Calculate the bandwidth
bw_hscv(as.matrix(spec1[, c("Ave_C", "Ave_N")]))

salbeke/rKIN documentation built on April 5, 2025, 11:32 p.m.