bw_ref: Normal Reference Distribution.

View source: R/bw_ref.R

bw_refR Documentation

Normal Reference Distribution.

Description

A simple wrapper for the MASS::bandwidth.nrd function. Divides values by 4 to match the scale of ks methods

Usage

bw_ref(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_hucv(as.matrix(spec1[, c("Ave_C", "Ave_N")]))

rKIN documentation built on Oct. 3, 2023, 1:06 a.m.