The regression equation relating mean TDEE to demographics and weight was as follows : TDEE ( kcal/d ) = 1279 + 18.3 ( weight , kg ) + 2.3 ( age , y ) - 338 ( sex : 1 = female , 0 = male ) ; R ( 2 ) = 0.57 .