The set of variables in a time series demand model in the form of the Almost Ideal Demand System are found to be I(1) with the demand equations forming a cointegrating system. The parameters of the cointegrating equations are estimated and tested using a 'triangular error correction' procedure. The null hypothesis of homogeneity with respect to prices and nominal income in the system cannot be rejected.