## Printing of an rgcca object
data(Russett)
blocks <- list(
agriculture = Russett[, seq(3)],
industry = Russett[, 4:5],
politic = Russett[, 6:8]
)
C <- matrix(c(0, 0, 1, 0, 0, 1, 1, 1, 0), 3, 3)
res <- rgcca(blocks,
connection = C, ncomp = rep(2, 3), tau = c(1, 1, 1),
scheme = "factorial", scale = TRUE, verbose = FALSE
)
print(res)
## Printing of an rgcca_cv object
res <- rgcca_cv(blocks,
response = 3, method = "rgcca", par_type = "tau",
par_value = c(0, 0.2, 0.3), n_run = 1, n_cores = 1,
verbose = TRUE
)
print(res)
## Printing of an rgcca_permutation object
perm.out <- rgcca_permutation(blocks,
par_type = "tau",
n_perms = 5, n_cores = 1,
verbose = TRUE
)
print(perm.out)
## Printing of an rgcca_bootstrap object
fit.rgcca <- rgcca(blocks, ncomp = c(2, 1, 2))
boot.out <- rgcca_bootstrap(fit.rgcca, n_boot = 20, n_cores = 2,
verbose = TRUE)
print(boot.out)
## Printing of an rgcca_stability object
fit.sgcca <- rgcca(blocks, sparsity = c(.8, .9, .6))
res <- rgcca_stability(fit.sgcca, n_boot = 10, verbose = TRUE)
print(res)
Run the code above in your browser using DataLab