Nothing
################################################################################
#
# Creates the first derivative matrix of B-splines with custom knots and order
#
################################################################################
dm <- function(l, knots, ord){
# Compute lags between knots and invert
kind <- (l + 1):(length(knots) - l)
dlknots <- diff(knots[kind], ord - l)
# Average knot length (to avoid very small or large numbers in Cmat)
avkl <- mean(diff(knots))
# Compute the difference matrix
diff(diag(length(dlknots) + 1)) / dlknots * (ord - l) * avkl
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.