code to recreate SPC summary stats; and a portion of stats by Boruff et al