The goal of WtTopsis is to provide a Weighted TOPSIS method for multiple-criteria decision making (MCDM).
You can install WtTopsis like so:
::install_github("zhengyu888/WtTopsis") devtools
This is a basic example which shows you how to solve a common problem:
library(WtTopsis)
<-c("ZH","ZJ","QJ","ZH","FU","ZH","QJ","FU","FU","ZH")
mth<-c(NA,NA,NA,NA,"CZ",NA,NA,"DS","CZ",NA)
zmth<-c(NA,4,NA,NA,NA,NA,NA,NA,NA,NA)
xbest<-c(NA,NA,5,NA,NA,NA,5,NA,NA,NA)
qup<-c(NA,NA,3,NA,NA,NA,3,NA,NA,NA)
qlow<-data2max(sampleData,mth,zmth,xbest,qlow,qup)
maxdata<-DataNormal(maxdata)
normaldata<-GetWeight(normaldata)
weightdata<-WtTopsisN(normaldata)
Cvalue1<-WtTopsis(sampleData,mth,zmth,xbest,qlow,qup)
Cvalue2## basic example code