ash1 {ash} | R Documentation |
univariate ASH
Description
Computes univariate averaged shifted histogram (polynomial kernel)
Usage
ash1(bins, m, kopt)
Arguments
bins |
(input list) |
m |
(input) optional integer smoothing parameter; default=5. |
kopt |
(input) vector of length 2 specifying the kernel, which
is proportional to |
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
Examples
x <- rnorm(100) # data
f <- ash1(bin1(x,nbin=50),5) # compute ash estimate
plot( f , type="l" ) # line plot of estimate
[Package ash version 1.0-15 Index]