WtTopsis: WtTopsis Weighted TOPSIS method for multiple-criteria...

Description Usage Arguments Value Examples

View source: R/WtTopsis.R

Description

WtTopsis Weighted TOPSIS method for multiple-criteria decision making (MCDM).

Usage

1
WtTopsis(data, mth, zmth, xbest, qlow, qup)

Arguments

data

The Data that needs to be maximized.

mth

A vector describing the type of each indicator.

zmth

A vector describing the method from negative to positive, including DS: reciprocal method, it is not recommended to use when the data has 0, CZ: using the maximum subtraction method, other types of indicators are marked as NA.

xbest

An optimal value vector of intermediate numerical values,other types of indicators are marked as NA.

qlow

An interval lower bound vector with interval numeric value forward,other types of indicators are marked as NA.

qup

An interval upper bound vector of the interval value maximize,other types of indicators are marked as NA.

Value

Data set containing D+,D- and C values

Examples

1
2
3
4
5
6
7
sampleData<-sampleData
mth<-c("ZH","ZJ","QJ","ZH","FU","ZH","QJ","FU","FU","ZH")
zmth<-c(NA,NA,NA,NA,"CZ",NA,NA,"DS","CZ",NA)
xbest<-c(NA,4,NA,NA,NA,NA,NA,NA,NA,NA)
qup<-c(NA,NA,5,NA,NA,NA,5,NA,NA,NA)
qlow<-c(NA,NA,3,NA,NA,NA,3,NA,NA,NA)
WtTopsis(sampleData,mth,zmth,xbest,qlow,qup)

WtTopsis documentation built on Oct. 26, 2021, 5:07 p.m.