cbc_overlap | R Documentation |
This function prints out a summary of the amount of "overlap" across
attributes within the choice questions. For example, for each attribute, the
count under "1"
is the number of choice questions in which the same level
was shown across all alternatives for that attribute (because there was only
one level shown). Likewise, the count under "2"
is the number of choice
questions in which only two unique levels of that attribute were shown, and
so on.
cbc_overlap(design)
design |
A data frame of a survey design. |
Prints the counts of the number of choice questions that contain the unique number of levels for each attribute.
library(cbcTools)
# A simple conjoint experiment about apples
# Generate all possible profiles
profiles <- cbc_profiles(
price = c(1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5),
freshness = c("Excellent", "Average", "Poor"),
type = c("Fuji", "Gala", "Honeycrisp")
)
# Make a randomized survey design
design <- cbc_design(
profiles = profiles,
n_resp = 300, # Number of respondents
n_alts = 3, # Number of alternatives per question
n_q = 6 # Number of questions per respondent
)
# Inspect the design balance
cbc_balance(design)
# Inspect the design overlap
cbc_overlap(design)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.