cbc_inspect | R Documentation |
This function provides detailed inspection of choice experiment designs across multiple dimensions including design structure, efficiency metrics, attribute balance, overlap patterns, and variable encoding.
cbc_inspect(design, sections = "all", verbose = FALSE)
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. |
A cbc_inspection
object containing the inspection results
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.