powered by
To estimate density function based on data with rounding errors.
bootkde(x,freq,a,b,from, to, gridsize=512L,method='boot')
Estimated values of the smooth function over a fine grid.
grid points where the smoothed function are evaluated.
return 'bw' for Berkson method, or return the mean and SD for MLE method
raw data if 'freq' missing, otherwise as distinct values with frequencies.
the lower and upper bounds of the rounding error.
start point, end point and size of a fine grid where the distribution will be evaluated.
type estimate: "mle" or "Berkson", or "boot" (default).
Wang, B and Wertelecki, W, (2013) Computational Statistics and Data Analysis, 65: 4-12.
#data(ofc) #x0 = round(ofc$Head) x0 = round(rnorm(100,34.5,1.6)) fx1 = bootkde(x0,a=-0.5,b=0.5,method="Berkson")
Run the code above in your browser using DataLab