GoMRcpp.R is a R-Script file for modeling Grade of Membership (GoM) to discrete data