Forecasting earnings composite variables, financial anomalies, and efficient Japanese and U.S. portfolios