# NOT RUN {
# Load a list with 3 data sets
library(iSFun)
data("simData.pca")
x <- simData.pca$x
L <- length(x)
mu1 <- c(0.3, 0.5)
mu2 <- 0.002
res_homo_m <- ispca.cv(x = x, L = L, K = 5, mu1 = mu1, mu2 = mu2, pen1 = "homogeneity",
pen2 = "magnitude", scale.x = TRUE, maxstep = 50, submaxstep = 10)
res_homo_s <- ispca.cv(x = x, L = L, K = 5, mu1 = mu1, mu2 = mu2, pen1 = "homogeneity",
pen2 = "sign", scale.x = TRUE, maxstep = 50, submaxstep = 10)
mu1 <- c(0.1, 0.15)
mu2 <- 0.05
res_hete_m <- ispca.cv(x = x, L = L, K = 5, mu1 = mu1, mu2 = mu2, pen1 = "heterogeneity",
pen2 = "magnitude", scale.x = TRUE, maxstep = 50, submaxstep = 10)
res_hete_s <- ispca.cv(x = x, L = L, K = 5, mu1 = mu1, mu2 = mu2, pen1 = "heterogeneity",
pen2 = "sign", scale.x = TRUE, maxstep = 50, submaxstep = 10)
# }
Run the code above in your browser using DataLab