Nothing
predict.crm <- function (object, newdata = NULL, ...) {
# check inputs
if (missing(object)) {
stop("argument 'object' is missing, with no default")
}
if (!is(object, "crm")) {
stop("argument 'object' must be of class 'crm'")
}
# predict response values
if (is.null(newdata)) {
return(object$fitted.values)
} else {
X <- model.matrix(delete.response(object$terms), newdata)
predicted.values <- as.numeric(X %*% object$coefficients)
names(predicted.values) <- rownames(newdata)
return(predicted.values)
}
}
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.