cbc_profiles {cbcTools} | R Documentation |
Make a data frame of all combinations of attribute levels
Description
This function creates a data frame of of all possible combinations of attribute levels.
Usage
cbc_profiles(...)
Arguments
... |
Any number of named vectors defining each attribute and their levels,
e.g. |
Value
A data frame of all possible combinations of attribute levels.
Examples
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')
)
[Package cbcTools version 0.5.0 Index]