Adding egp3Thresh.R - need to add Roxygen stuff to it