ash1: ** RESERVED FOR INTERNAL USE **

View source: R/z_ash.R

ash1R Documentation

** RESERVED FOR INTERNAL USE **

Description

ash::ash1 modified to use message() instead of regular text output

Usage

ash1(bins, m = 5, kopt = c(2, 2), quiet = TRUE)

Arguments

bins

(input list) $nc=integer vector of bin counts and $ab=bin interval

m

(input) optional integer smoothing parameter; default=5.

kopt

(input) vector of length 2 specifying the kernel, which is proportional to ( 1 - abs(i/m)^kopt(1) )i^kopt(2); (2,2)=biweight (default); (0,0)=uniform; (1,0)=triangle; (2,1)=Epanechnikov; (2,3)=triweight.

Value

returns structure suitable for input to plot dd

x=t

vector of bin center locations

y=f

vector of ash estimates

ier

0=normal exit; 1=estimate nonzero outside interval ab

See Also

bin1


benja0x40/Barbouille documentation built on March 26, 2023, 11:38 p.m.