XXX of length k sublists of polygonal fuzzy numbers the function first checks if each element of the sublists has the correct format and if the alpha-levels of all input fuzzy numbers coincide. The vector sel contains the numbers of the sublists the user wants to filter to. After filtering the relevant part of XXX the function computes the test-statistic, which compares the sum of the distances of the groups means and the overall mean with the sum of the group variances. Before doing the resampling length(sel) new samples are calculated by adding to each element of every fixed group the sum of all means of the other groups. Based on these length(sel) new samples B values of the (bootstrap) test statistic are calculate. The returned p-value is calculated as the portion of the obtained values of the bootstrap statistic that are greater than the value of the test-statistic. If pic=1 then the sample means of the via sel selected samples from XXX and the total mean are plotted in one window and the ecdf of the bootstrap statistic in another one, otherwise no plot is produced. For a more detailed explanation see the papers [1] and [2] below.btestk.mean(XXX, sel, B = 50, pic = 1)B=50.pic=1 then the sample means of the via sel selected samples from XXX and the total mean are plotted in one window and the ecdf of the bootstrap statistic in another one. By default pic=1.XXX in the correct format, the function returns the p-value of the two-sided test.Mmean, Bvar, bertoluzza, btest.mean, btest2.mean#very small B only for testing purpose
data(Trees)
sel<-c(1,2,3)
b<-btestk.mean(Trees,sel,5)
b
#run for bigger B
#b<-btestk.mean(Trees,sel,100)
#bRun the code above in your browser using DataLab