library(cbcTools) profiles <- cbcprofiles( WaitingTimeMinutes = c(5,10,15),…
Jump to turn (7)
- 1library(cbcTools) profiles 20, ) designorthogonal <- cbcdesign( profiles = profi
- 2I want to create a stated preference survey particularly choice based conjoint a
- 3I want to create a stated preference survey particularly choice based conjoint a
- 4I want to create a stated preference survey particularly choice based conjoint a
- 5library(AlgDesign) library(cbcTools) Define attributes and levels attributes 30,
- 6I want to create a stated preference survey particularly choice based conjoint a
- 7library(AlgDesign) Define attributes and levels attributesList <- list( WaitingT
- User
library(cbcTools)
profiles <- cbc_profiles( WaitingTimeMinutes = c(5,10,15), CostReductionPercetage = c(10,20,30), AdditionalTimeMinutes = c(4,8,12), AdditionalPassengers = c(1,2,3), RideSharingPreference = c('Same Gender','Random Gender') )
restricted_profiles <- cbc_restrict( profiles, AdditionalPassengers == '3' & AdditionalTimeMinutes<8, AdditionalPassengers == '3' & CostReductionPercetage<30, AdditionalPassengers == '1' & CostReductionPercetage<20, RideSharingPreference == "Same Gender" & CostReductionPercetage>20, ) design_orthogonal <- cbc_design( profiles = profiles, n_resp = 3, # Number of respondents n_alts = 3, # Number of alternatives per question n_q = 5, # Number of questions per respondent method = 'orthogonal' )
design <- cbc_design( profiles = restricted_profiles, n_resp = 3, # Number of respondents n_alts = 3, # Number of alternatives per question n_q = 5, # Number of questions per respondent n_blocks = 1, method = 'full' )
- Assistant