show_recommendation: One-line dynamic recommendation message

View source: R/sample_size_EGA_montecarlo.R

show_recommendationR Documentation

One-line dynamic recommendation message

Description

Reports, as a message, a single sentence with the recommended sample size and the structural assumptions that produced it (items, communities, sizes, data type, power target, bootstrap CI when available). Use this when you want the answer fast and don't need the full print() report.

Usage

show_recommendation(x)

Arguments

x

A sample_size_EGA_montecarlo object.

Value

Invisibly returns the recommended n.

Examples

res <- sample_size_EGA_montecarlo(
  community_sizes = c(4, 4), within_edge = 0.20,
  sample_sizes = c(100, 200, 400), n_rep = 10,
  data_type = "continuous", seed = 1, verbose = FALSE,
  control = list(boots = 100, corr = "pearson", algorithm = "walktrap")
)
show_recommendation(res)

InterconectaR documentation built on Oct. 16, 2026, 1:06 a.m.