Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ash2

bivariate ASH


Description

Compute bivariate ASH estimate (product polynomial kernel)

Usage

ash2(bins, m, kopt)

Arguments

bins

(input list) bin count matrix nc and interval matrix ab from bin2

m

(input integer vector of length 2) x and y direction smoothing parameters. Default is 5 by 5.

kopt

see ash1

Value

Matrix of ASH estimates returned. Components x,y,z can be given to the contour function directly. Other input variables returned in list for record keeping.

See Also

Examples

# Continuing example from help(bin2)
m <- c(5,5)
f <- ash2(bins,m)
image(f$x,f$y,f$z)
contour(f$x,f$y,f$z,add=TRUE)

ash

David Scott's ASH Routines

v1.0-15
GPL (>= 2)
Authors
S original by David W. Scott R port by Albrecht Gebhardt <albrecht.gebhardt@aau.at> adopted to recent S-PLUS by Stephen Kaluzny <spk@insightful.com>
Initial release
2015-08-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.