ash2: bivariate ASH

Description Usage Arguments Value See Also Examples

View source: R/ash.R

Description

Compute bivariate ASH estimate (product polynomial kernel)

Usage

1
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

bin2

Examples

1
2
3
4
5
# 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 documentation built on May 1, 2019, 6:30 p.m.

Related to ash2 in ash...