R/silverman.r

Defines functions silverman

Documented in silverman

#' @title A simple Silverman bandwidth formula
#' @name silverman
#' @description Silverman bandwidth
#' @param d Number of dimension
#' @param n Number of observation
#' @return A simple bandwidth choice
#' @examples
#' silverman(1, 300)

silverman <- function(d, n)
{
  return((4/(d+2))^(1/(d+4))*n^(-1/(d+4)))
}

Try the orthoDr package in your browser

Any scripts or data that you put into this service are public.

orthoDr documentation built on Sept. 5, 2019, 5:03 p.m.