R/error.den.R

error.den <- function(band, eps, res.data)
{
    res = as.numeric(res.data)
    data.num = length(res)
    std.res = sd(res)
    epsilon = (res - mean(res))/std.res
    eps.std = (eps - mean(res))/std.res
    
    tem  = (eps.std - epsilon)/band
    tem2 = dnorm(tem)/band
    
    hatf = (sum(tem2)/data.num)/std.res
    return(hatf)
}

Try the bbefkr package in your browser

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

bbefkr documentation built on May 2, 2019, 3:04 a.m.