GetWeight: GetWeight Calculate weights on standardized data us the...

Description Usage Arguments Value Examples

View source: R/GetWeight.R

Description

GetWeight Calculate weights on standardized data us the entropy method.

Usage

1

Arguments

data

A Normalized data set

Value

WeightEij is Ej value of Index,weight is weight value of Index

Examples

1
2
3
4
5
6
7
8
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)

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