R/A2_k.R

A2_k <-
function(type_kernel)
# INPUTS:
#   "type_kernel" kernel function: "e" Epanechnikov,	"n" Normal, 
#                                  "b" Biweight, "t" Triweight         

{
	if(type_kernel == "e")	
    result <- 1/5	
	else 
		if(type_kernel == "n")	
      result <- 1		 
	else 
		if(type_kernel == "b")	
		  result <- 1/7	 
	else 
		if(type_kernel == "t")	
      result <- 1/9	
  return(result)
}

Try the kerdiest package in your browser

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

kerdiest documentation built on May 2, 2019, 3:24 a.m.