calcmode | R Documentation |
Derives the mode, estimating the value of a continuous variable.
calcmode(data,adjust=1)
data |
vector used to estimate the mode. |
adjust |
increase this value to make the density estimate smoother. |
Returns the numeric value of the mode.
Adapted from https://stat.ethz.ch/pipermail/r-help/2008-August/172323.html.
vect1 = rchisq(1000,df=3) calcmode(vect1) vect1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.