write.table(as.integer(c(n,p,m,k)), paste(testFolder,"dimensions",sep=""),
row.names=F, col.names=F)
- res = EMGLLF(params$phiInit,params$rhoInit,params$piInit,params$gamInit,mini,maxi,
+ res = EMGLLF_R(params$phiInit,params$rhoInit,params$piInit,params$gamInit,mini,maxi,
gamma,lambda,xy$X,xy$Y,tau)
#save outputs
write.table(as.double(res$pi), paste(testFolder,"pi",sep=""), row.names=F, col.names=F)
write.table(as.double(res$LLF), paste(testFolder,"LLF",sep=""), row.names=F, col.names=F)
write.table(as.double(res$S), paste(testFolder,"S",sep=""), row.names=F, col.names=F)
+ write.table(as.integer(res$affec), paste(testFolder,"affec",sep=""), row.names=F, col.names=F)
}