cbc_overlap {cbcTools} | R Documentation |
Counts of attribute overlap
Description
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.
Usage
cbc_overlap(design)
Arguments
design |
A data frame of a survey design. |
Value
Prints the counts of the number of choice questions that contain the unique number of levels for each attribute.
Examples
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)
[Package cbcTools version 0.5.0 Index]