
#R 3.6 version is needed for MGA analysis #More than two option in a variable Mga is not possible#install.packages("devtools") #library(devtools)# install "plspm"#install_github("gastonstat/plspm")# load plspmlibrary(plspm)#require(plspm)dataset <- read.csv(file.choose())#make a modelCO=c(0,0,0,0,0)AT=c(1,0,0,0,0)SN=c(1,0,0,0,0)PBC=c(1,0,0,0,0)PMO=c(0,1,1,1,0)x=rbind(CO,AT,SN,PBC,PMO)colnames(x)=rownames(x)innerplot(x,...