Nothing
penalty.ord <-
function(x, K = NULL, xlev = NULL){
# Ordinal Smoothing Spline Penalty
# Nathaniel E. Helwig (helwig@umn.edu)
# Update: 2021-04-09
if(is.null(K)) K <- length(unique(x))
if(is.null(xlev)){
x <- as.ordered(x)
} else {
x <- factor(x, levels = xlev, ordered = TRUE)
}
x <- as.integer(x)
const <- (K - 1) * (2 * K - 1) / (6 * K)
X <- outer(X = x, Y = x, FUN = "ordkern", K = K, const = const) / K
X
}
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.