Nothing
test_that("NIPALS.pls produces valid output on iris data", {
data(iris)
x <- as.matrix(iris[, c("Sepal.Length", "Sepal.Width")])
y <- as.matrix(iris[, c("Petal.Length", "Petal.Width")])
model <- NIPALS.pls(x, y, n.components = 2)
expect_type(model, "list")
expect_equal(model$model.type, "PLS Regression")
expect_equal(ncol(model$T), 2)
expect_equal(ncol(model$coefficients), 2)
expect_equal(nrow(model$coefficients), 2)
expect_true(all(model$X_explained > 0))
expect_true(all(model$Y_explained >= 0))
})
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.