refactored evolved CO2 calculation to function and saved predictions in Stan model