GetWeight {WtTopsis} | R Documentation |
GetWeight Calculate weights on standardized data us the entropy method.
Description
GetWeight Calculate weights on standardized data us the entropy method.
Usage
GetWeight(data)
Arguments
data |
A Normalized data set |
Value
WeightEij is Ej value of Index,weight is weight value of Index
Examples
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)
weightdata<-data2max(sampleData,mth,zmth,xbest,qlow,qup)
GetWeight(weightdata)
[Package WtTopsis version 1.0 Index]