Learn R Programming

VSOLassoBag (version 0.99.1)

kneedle: Kneedle Algorithm: to detect elbow point(s) on the curve

Description

An internal function utilized by VSOLassoBag.

Usage

kneedle(res, S = 10, auto.loose = TRUE, min.S = 0.1, loosing.factor = 0.5)

Value

the original input dataframe along with the elbow point indicator "elbow.point" with elbow point(s) marked with "*", "Diff" the difference curve, "Thres" the threshold.

Arguments

res

a dataframe with variables and observed frequency

S

numeric, determines how aggressive the elbow points on the curve to be called, smaller means more aggressive and larger means more conservative

auto.loose

if TRUE, will reduce `kneedle.S` in case no elbow point is found with the set `kneedle.S`

min.S

a numeric value determines the minimal value that `kneedle.S` will be loosed to.

loosing.factor

a numeric value range in (0,1), which `kneedle.S` is multiplied by to reduce itself.

References

Original Kneedle Algorithm, the algorithm utilized in LassoBag has been modified.

Examples

Run this code
load(system.file("extdata/Results.RData", package="VSOLassoBag"))
kneedle(Results)

Run the code above in your browser using DataLab