R script summarizing full panel deg cases