summary.BLB_archetypal {GeomArchetypal} | R Documentation |
Summarize an Object of the Class BLB_archetypal
Description
It summarizes the output of BLB_archetypal
Usage
## S3 method for class 'BLB_archetypal'
summary(object, ...)
Arguments
object |
An object of the class BLB_archetypal |
... |
Other arguments (ignored) |
Details
Given an object of class BLB_archetypal all the results are being summarized in explanatory form.
Value
No return value, called for side effects
Examples
{
library(GeomArchetypal)
library(mirai)
library(parallel)
data("gallupGPS6")
aa_var <- c("patience","risktaking","trust") # variables for archetypal analysis
# define the 2^3 archetypes from minimums and maximums of the data
min_var <- apply(gallupGPS6[, aa_var], 2, min, na.rm = TRUE)
max_var <- apply(gallupGPS6[, aa_var], 2, max, na.rm = TRUE)
temp <- as.data.frame.matrix(rbind(min_var, max_var))
colnames(temp) <- aa_var
list_minmax <- apply(temp, 2, as.list)
rm(temp, min_var, max_var)
arches <- data.matrix(do.call(expand.grid, list_minmax))
arches <- as.data.frame(arches)
rm(list_minmax)
# apply BLB archetypal for a minimal example
test <- BLB_archetypal(df = gallupGPS6,
ss_size = 50,
bs_size = nrow(gallupGPS6),
arches = arches,
use_seed = 2024,
n = 1, r = 2, n_core = 1,
diag_less = 1e-2)
# Summarize the results of the "BLB_archetypal" class object:
summary(test)
}
[Package GeomArchetypal version 1.0.3 Index]