Learn R Programming

MetaLandSim (version 1.0.4)

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)

Arguments

data

vector used to estimate the mode.

adjust

increase this value to make the density estimate smoother.

Value

Returns the numeric value of the mode.

Examples

Run this code
# NOT RUN {
vect1 = rchisq(1000,df=3)
calcmode(vect1)
vect1
# }

Run the code above in your browser using DataLab