clear;

x = [
     78 48.2 2.75 29.5;
     69 45.5 2.15 26.3;
     77 46.3 4.41 32.2;
     88 49.0 5.52 36.5;
     67 43.0 3.21 27.2;
     80 48.0 4.32 27.7;
     74 48.0 2.31 28.3;
     94 53.0 4.30 30.3;
    102 58.0 3.71 28.7];

y = [57.5; 52.8; 61.3; 67.0; 53.5; 62.7; 56.2; 68.5; 69.2;];

SSR = regresion(x, y, [1], 0);
SSR = regresion(x, y, [2], 0);
SSR = regresion(x, y, [3], 0);
SSR = regresion(x, y, [4], 0);

SSR = regresion(x, y, [1,2], 288.1468);
SSR = regresion(x, y, [1,3], 288.1468);
SSR = regresion(x, y, [1,4], 288.1468);

SSR = regresion(x, y, [1, 3, 2], 317.4555);
SSR = regresion(x, y, [1, 3, 4], 317.4555);