Learn R Programming

lsasim (version 2.1.4)

summary.lsasimcluster: Summarizes clusters

Description

Takes the output of `cluster_gen` and creates summary statistics of the questionnaire variables

Usage

# S3 method for lsasimcluster
summary(
  object,
  digits = 4,
  print = "partial",
  print_hetcor = TRUE,
  force_matrix = FALSE,
  ...
)

Value

list of summaries

Arguments

object

output of `cluster_gen`

digits

loosely controls the number of digits (significant or not) in the output (for `print = TRUE`)

print

"all" will pretty-print a summary of statistics, "partial" will only print cluster-level sumamrizes; "none" outputs statistics as a list

print_hetcor

if `TRUE` (default), prints the heterogeneous correlation matrix

force_matrix

if `TRUE`, prints the heterogeneous correlation matrix even if warnings are generated

...

additional arguments (unused; added for compatibility with generic)

See Also

anova.lsasimcluster

Examples

Run this code
n <- c(3, 30)
cls <- cluster_gen(n, n_X = 3, n_W = 5)
summary(cls)
summary(cls, print="none") # allows saving results

Run the code above in your browser using DataLab