cbc_profiles | R Documentation |
This function creates a data frame of of all possible combinations of attribute levels.
cbc_profiles(...)
... |
Any number of named vectors defining each attribute and their levels,
e.g. |
A data frame of all possible combinations of attribute levels.
library(cbcTools)
# Generate all profiles for a simple conjoint experiment about apples
profiles <- cbc_profiles(
price = c(1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5),
type = c("Fuji", "Gala", "Honeycrisp"),
freshness = c('Poor', 'Average', 'Excellent')
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.