Estimator of prediction error based on AMP for SCAD and MCP

We propose an approximate message passing-based (AMP-based) estimators of the prediction error for penalized linear regression [Sakata A. (2018)].
In this paper, we propose two types of estimators denoted by εpre(1) and εpre(2).
The explanation of these estimators and matlab codes for calculating the estimators are as follows: