cbc_inspect {cbcTools} | R Documentation |
Comprehensive design quality inspection
Description
This function provides detailed inspection of choice experiment designs across multiple dimensions including design structure, efficiency metrics, attribute balance, overlap patterns, and variable encoding.
Usage
cbc_inspect(design, sections = "all", verbose = FALSE)
Arguments
design |
A |
sections |
Character vector specifying which sections to show.
Options: "structure", "efficiency", "balance", "overlap", "encoding", or "all" (default).
Can specify multiple: |
verbose |
Logical. If TRUE, shows additional technical details. If FALSE (default), shows simplified output. |
Value
A cbc_inspection
object containing the inspection results
Examples
library(cbcTools)
# Create profiles and design
profiles <- cbc_profiles(
price = c(1, 2, 3),
type = c("A", "B", "C"),
quality = c("Low", "High")
)
design <- cbc_design(
profiles = profiles,
n_alts = 2,
n_q = 4
)
# Inspect all sections (default) - prints automatically
cbc_inspect(design)
# Store results for later use
inspection <- cbc_inspect(design, sections = "balance")
inspection # prints the same output
# Verbose output with technical details
cbc_inspect(design, verbose = TRUE)
[Package cbcTools version 0.6.2 Index]