Abstract: | This article shows how to compute the in-sample effect of exogenous inputs on the endogenous variables in any linear model written in a state–space form. Estimating this component may be either interesting by itself, or a previous step before decomposing a time series into trend, cycle, seasonal and error components. The practical application and usefulness of this method is illustrated by estimating the effect of advertising on the monthly sales of Lydia Pinkham's vegetable compound. |