Learn R Programming

MetaLandSim (version 2.0.0)

calcmode: Function for mode estimation of a continuous variable

Description

Derives the mode, estimating the value of a continuous variable.

Usage

calcmode(data,adjust=1)

Value

Returns the numeric value of the mode.

Arguments

data

vector used to estimate the mode.

adjust

increase this value to make the density estimate smoother.

Examples

Run this code
vect1 = rchisq(1000,df=3)
calcmode(vect1)
vect1

Run the code above in your browser using DataLab