Nothing
################################################################################
#
# Shape constraint matrix method:
# Default method
#
################################################################################
#' @rdname shapeConstr
#' @export
shapeConstr.default <- function(x, shape, intercept = FALSE, ...) {
# Matrix dimension
if (length(dim(x)) < 2) x <- as.matrix(x)
ord <- ncol(x)
# Check parameters
cpars <- chkshp(shape, ord)
# Create constraint matrices
knots <- seq_len(2 * ord + !intercept)
Cmat <- lapply(cpars, function(cp) dmat(cp[1], cp[2], knots, ord))
Cmat <- do.call(rbind, Cmat)
# Put together and remove redundant constraints
if (!intercept) Cmat <- Cmat[, -1, drop = FALSE]
Cmat <- Cmat[!checkCmat(Cmat)$redundant,, drop = FALSE]
# Add bound attributes
attr(Cmat, "lb") <- rep(0, NROW(Cmat))
attr(Cmat, "ub") <- rep(Inf, NROW(Cmat))
# Return
Cmat
}
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.