benefitToCostAttr: Converts benefit type attributes to cost type, within a list

Description Usage Arguments Value See Also Examples

Description

Converts benefit type attributes to cost type, within a list

Usage

1
benefitToCostAttr(dataset, aList, cost_ids = NULL)

Arguments

dataset

a data.frame with the user generated data from a product configurator. See Details of decisionMatrix for more information about which data should included in this argument.

aList

a List with decision matrices as elements. Within each decision matrix, the columns are attributes from a product configurator. Using cost_ids the cost type attribtues are identified and transformed from benefit to cost attributes. Cost attributes are product characteristics for which a lower value means a higher 'utility', e.g. price.

cost_ids

argument used to convert selected cost attributes into benefit attributes. Integer vector. Cost type attributes have the characteristic, that a lower value means the user is better off than with a higher value. E.g. price is often considered a cost type attribute. Should be equal to attr input or a subset of it.

Value

the same list as aList with converted cost attribtues

See Also

Other GetFunctions: getAllUserIds, getAttrValues, getDefaultRefps, getRoundsById, getTableById, get_attrs_ID, normalize

Examples

1
2
3
#Not runnable yet
benefitToCostAttr(myData, listWithDecMatrices, cost_ids= c(5,8))
benefitToCostAttr(myData2, someList, cost_ids= 1:3)

avilesd/productConfig documentation built on May 11, 2019, 4:08 p.m.