dens.plot: Denseti plot

Description Usage Arguments Value Author(s) Examples

Description

Use the density.estimate() and plot the density function.

Usage

1
dens.plot(x, n, method, from, to)

Arguments

x

is a numeric variable.

n

is the number of points to the plot. n has to be a positive integer.

method

is either the naive estimator or the Gaussian kernel estimator. The default is the naive estimator.

from

is the point, you are plotting from.

to

is the point, you are plotting to.

Value

The function gives a plot of the density, either naive or Gaussian kernel.

Author(s)

Tobias Mortensen
Department of mathematics and computer science (IMADA)
University of southern Denmark, Odense
tomor14@student.sdu.dk

Examples

1
density.plot(x=cars$dist, n=300, method="naive", from=2, to=100)

tomor14/Examst522 documentation built on May 31, 2019, 6:20 p.m.