Density: Density estimator

Description Usage Arguments Value Author(s) Examples

Description

This function estimates the density of the given data.

Usage

1
Density(x,d,h,method = "naive")

Arguments

x

numeric variable

d

point you are evaluating to obtain its density

h

bandwidth

method

method for estimating the density. Is either "naive" or "kernel". Set default as "naive".

Value

Return, depending on input, either the density in a point or the bandwidth and a table of densities estimated at minimum, 1st quartile, median, mean, 3rd quartile, maximum.

Author(s)

Nina Louise Pedersen
Institute of Mathematics and Computer Science (IMADA)
University of Sourthern Denmark, (SDU)
npede14@student.sdu.dk

Examples

1
Density(cars$speed,3,0.33,method = "kernel")

ninalpedersen/Temp2 documentation built on May 23, 2019, 7:05 p.m.