Learn R Programming

otrimle (version 2.0)

kmeanfun: Mean and standard deviation of unimodality statistic

Description

These functions approximate the mean and standard deviation of the unimodality statistic computed by kerndensmeasure assuming standard Gaussian data dependent on the number of observationsn. They have been chosen based on a simulation involving 74 different values of n. Used for standardisation in kerndensp.

Usage

kmeanfun(n)
  ksdfun(n)

Arguments

n

integer. Number of observations.

Value

The resulting mean (kmeanfun) or standard deviation (ksdfun).

See Also

kerndensp

Examples

Run this code
# NOT RUN {
   kmeanfun(50)
   ksdfun(50)
# }

Run the code above in your browser using DataLab