attribute_effect {DEXiR} | R Documentation |
attribute_effect
Description
Given a single alternative
, determine the effects of varying attribute
on target
attribute.
Usage
attribute_effect(model, attribute, alternative, target = NULL, seq = NULL, ...)
Arguments
model |
A DexiModel object. Required. |
attribute |
A DexiAttribute with assigned discrete or continuous scale. |
alternative |
A |
target |
Target DexiAttribute. Defaults to |
seq |
A sequence of |
... |
Optional parameters passed to |
Value
A list of target
evaluation results, indexed by the values of seq
.
See Also
Examples
# Load "Car.dxi"
CarDxi <- system.file("extdata", "Car.dxi", package = "DEXiR")
Car <- read_dexi(CarDxi)
alt <- Car$alternative("MyCar",
BUY.PRICE="low", MAINT.PRICE=2, X.PERS="more", X.DOORS="4", LUGGAGE=2, SAFETY="medium")
# Determine the effect of changing "SAFETY" balues on "CAR.1"
attribute_effect(Car, "SAFETY", alt)
# Returns a list of "CAR.1" values corresponding to consecutive values of "SAFETY"
attribute_effect(Car, "LUGGAGE", alt, "TECH.CHAR.")
# Returns a list of "TECH.CHAR." values corresponding to consecutive values of "LUGGAGE"
[Package DEXiR version 1.0.2 Index]