# NOT RUN {
# Load a list with 3 data sets
library(iSFun)
data("simData.pls")
x <- simData.pls$x
y <- simData.pls$y
L <- length(x)
mu1 <- c(0.04, 0.05)
mu2 <- 0.25
res_homo_m <- ispls.cv(x = x, y = y, L = L, K = 5, mu1 = mu1, mu2 = mu2, eps = 1e-2,
kappa = 0.05, pen1 = "homogeneity", pen2 = "magnitude",
scale.x = TRUE, scale.y = TRUE, maxstep = 50, submaxstep = 10)
res_homo_s <- ispls.cv(x = x, y = y, L = L, K = 5, mu1 = mu1, mu2 = mu2, eps = 1e-2,
kappa = 0.05, pen1 = "homogeneity", pen2 = "sign",
scale.x = TRUE, scale.y = TRUE, maxstep = 50, submaxstep = 10)
res_hete_m <- ispls.cv(x = x, y = y, L = L, K = 5, mu1 = mu1, mu2 = mu2, eps = 1e-2,
kappa = 0.05, pen1 = "heterogeneity", pen2 = "magnitude",
scale.x = TRUE, scale.y = TRUE, maxstep = 50, submaxstep = 10)
res_hete_s <- ispls.cv(x = x, y = y, L = L, K = 5, mu1 = mu1, mu2 = mu2, eps = 1e-2,
kappa = 0.05, pen1 = "heterogeneity", pen2 = "sign",
scale.x = TRUE, scale.y = TRUE, maxstep = 50, submaxstep = 10)
# }
Run the code above in your browser using DataLab