determine.n.knots | R Documentation |
This function computes a reasonable number of inner knots to be used for a basis of unidimensional B-splines
determine.n.knots(n, cutoff = 4, rate = 0.3)
n |
an integer vector of sample sizes |
cutoff |
a numeric vector of cutoff values |
rate |
a numeric vector of rates at which the number of knots increases with the sample size |
An integer vector with the number of knots for each sample size
Ruppert, D. (2002). Selecting the number of knots for penalized splines. Journal of Computational and Graphical Statistics 11, 735–757.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.