Translation to R of Generalized Structured Component Analysis model written in Matlab.