Using R, read in the dataset brandPreference.txt". The data refers to a small-scale experimental study of the relation between degree of brand liking (Y ) and moisture content (X1) and sweetness (X2) of the product.
1. Obtain the analysis of variance table that decomposes the regression sum of squares onto extra sums of squares associated with X1 and with X2, given X1.
2. Regress brand linking (Y ) on sweetness (X2) using SLR model and obtain the residuals.
3. Regress moisture content X1 on sweetness (X2) using SLR model and obtain the residuals.
Attachment:- brandpreference.csv