undecidedUnits {geocmeans} | R Documentation |
Identify the observation for with the classification is uncertain
undecidedUnits(belongmatrix, tol = 0.1)
belongmatrix |
The membership matrix obtained at the end of the algorithm |
tol |
A float indicating the minimum required level of membership to be not considered as undecided |
A vector indicating the most likely group for each observation or "Undecided" if the maximum probability for the observation does not reach the value of the tol parameter
data(LyonIris) AnalysisFields <-c("Lden","NO2","PM25","VegHautPrt","Pct0_14","Pct_65","Pct_Img", "TxChom1564","Pct_brevet","NivVieMed") dataset <- LyonIris@data[AnalysisFields] queen <- spdep::poly2nb(LyonIris,queen=TRUE) Wqueen <- spdep::nb2listw(queen,style="W") result <- SFCMeans(dataset, Wqueen,k = 5, m = 1.5, alpha = 1.5, standardize = TRUE) undecidedUnits(result$Belongings, tol = 0.45)