# NOT RUN {
## Load Pathogen Compositions of M. oryzae collected in Madagascar
data(PathogenCompositionMoryzaeMadagascar)
x=t(PathogenCompositionMoryzaeMadagascar)
## Apply the GMCPIC test (use B=10^3, M=10^4 to get a robust result)
# }
# NOT RUN {
testMada=gmcpic.test(x, B=10^2, M=10^3, weights=seq(0.5,0.99,by=0.01),threshold=0.05)
# }
# NOT RUN {
testMada
# }
# NOT RUN {
## Apply the Chi-squared test
chisq.test(x, simulate.p.value = TRUE, B = 10000)
# }
Run the code above in your browser using DataCamp Workspace