Learn R Programming

WtTopsis

The goal of WtTopsis is to provide a Weighted TOPSIS method for multiple-criteria decision making (MCDM).

Installation

You can install WtTopsis like so:

devtools::install_github("zhengyu888/WtTopsis")

Example

This is a basic example which shows you how to solve a common problem:

library(WtTopsis)
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)
maxdata<-data2max(sampleData,mth,zmth,xbest,qlow,qup)
normaldata<-DataNormal(maxdata)
weightdata<-GetWeight(normaldata)
Cvalue1<-WtTopsisN(normaldata)
Cvalue2<-WtTopsis(sampleData,mth,zmth,xbest,qlow,qup)
## basic example code

Copy Link

Version

Install

install.packages('WtTopsis')

Monthly Downloads

135

Version

1.0

License

MIT + file LICENSE

Maintainer

zhengyu wu

Last Published

October 26th, 2021

Functions in WtTopsis (1.0)

min2maxD

min2maxD negative Data conversion use reciprocal method
min2maxC

min2maxC negative Data conversion use Maximum subtraction method
sampleData

A example of multiple-criteria decision making data.
max2max

max2max positive Data conversion.
zj2max

zj2max Intermediate Data conversion
qj2max

qj2max Interval Data conversion
Ejcaul

Ejcaul Calculate Ej value.
Errmax

Errmax Function on error.
GetWeight

GetWeight Calculate weights on standardized data us the entropy method.
WtTopsis

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

WtTopsis Weighted TOPSIS method for multiple-criteria decision making (MCDM) us Normalized data.
data2max

data2max Maximized the data.
DataNormal

DataNormal Normalize the maximized data set.
DataNormalpre

DataNormalpre Prepare the normalized data set.