View source: R/optimize_metric.R
cutpoint_knots | R Documentation |
This function calculates the number of knots
when using smoothing splines for smoothing a function of metric values per
cutpoint value. The function for calculating the number of knots is equal
to stats::.nknots_smspl
but uses the number of unique cutpoints
in the data as n.
cutpoint_knots(data, x)
data |
A data frame |
x |
(character) The name of the predictor variable |
cutpoint_knots(suicide, "dsi")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.