## Not run:
# #===================================================
# # Loading the library and its dependencies
# #===================================================
# library("MVR")
#
# #===================================================
# # MVR package news
# #===================================================
# MVR.news()
#
# #================================================
# # MVR package citation
# #================================================
# citation("MVR")
#
# #===================================================
# # Loading of the Synthetic and Real datasets
# # (see description of datasets)
# #===================================================
# data("Synthetic", "Real", package="MVR")
# ?Synthetic
# ?Real
#
# #===================================================
# # Mean-Variance Regularization (Real dataset)
# # Multi-Group Assumption
# # Assuming unequal variance between groups
# # Without cluster usage
# ===================================================
# nc.min <- 1
# nc.max <- 30
# probs <- seq(0, 1, 0.01)
# n <- 6
# GF <- factor(gl(n = 2, k = n/2, len = n),
# ordered = FALSE,
# labels = c("M", "S"))
# mvr.obj <- mvr(data = Real,
# block = GF,
# log = FALSE,
# nc.min = nc.min,
# nc.max = nc.max,
# probs = probs,
# B = 100,
# parallel = FALSE,
# conf = NULL,
# verbose = TRUE)
#
# #===================================================
# # Summary Cluster Diagnostic Plots (Real dataset)
# # Multi-Group Assumption
# # Assuming unequal variance between groups
# #===================================================
# cluster.diagnostic(obj = mvr.obj,
# title = "Cluster Diagnostic Plots
# (Real - Multi-Group Assumption)",
# span = 0.75,
# degree = 2,
# family = "gaussian",
# device = NULL,
# horizontal = FALSE,
# width = 8.5,
# height = 11)
#
# #===================================================
# # Mean-Variance Regularization (Real dataset)
# # Single-Group Assumption
# # Assuming equal variance between groups
# # Without cluster usage
# #===================================================
# nc.min <- 1
# nc.max <- 30
# probs <- seq(0, 1, 0.01)
# n <- 6
# mvr.obj <- mvr(data = Real,
# block = rep(1,n),
# log = FALSE,
# nc.min = nc.min,
# nc.max = nc.max,
# probs = probs,
# B = 100,
# parallel = FALSE,
# conf = NULL,
# verbose = TRUE)
#
# #===================================================
# # Summary Cluster Diagnostic Plots (Real dataset)
# # Single-Group Assumption
# # Assuming equal variance between groups
# #===================================================
# cluster.diagnostic(obj = mvr.obj,
# title = "Cluster Diagnostic Plots
# (Real - Single-Group Assumption)",
# span = 0.75,
# degree = 2,
# family = "gaussian",
# device = NULL,
# horizontal = FALSE,
# width = 8.5,
# height = 11)
# ## End(Not run)
Run the code above in your browser using DataLab