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