Bayesian comparison of production function-based and time-series GDP models

A purely Bayesian vector autoregression (VAR) framework is proposed to formulate and compare tri-variate models for the logs of the economy-wide aggregates of output and inputs (physical capital and labour). The framework is derived based on the theory of the aggregate production function, but at the same time, accounts for the dynamic properties of macroeconomic data, which makes it particularly appealing for modelling GDP. Next, using the proposed framework we confront a-theoretical time-series models with those that are based on aggregate production function-type relations. The common knowledge about capital and labour elasticities of output as well as on their sum is used in order to formulate prior distribution for each tri-variate model, favouring the linearly homogenous Cobb–Douglas production function-type relation. In spite of this, production function-based co-integration models fail empirical comparisons with simple VAR structures, which describe the three aggregates by three stochastic trends.

very concept of aggregate production functions; this critique is summarized in Felipe and McCombie (2013). While microeconomic production functions are reasonable models that describe technology of individual producers, meaningful aggregation of physical capital, labour and output is hardly possible, and any simple relation between aggregates looks very suspicious-see, for example, Fisher (1969). Even in modern attempts to derive aggregate production functions from micro-foundations, the underlying assumptions are extremely specific-see, for example, Jones (2005) and Growiec (2008Growiec ( , 2013. On the other hand, it is often argued that even though the link between the aggregate production function (APF hereafter) and its microeconomic foundations is not clear it still presents a reasonable, well-defined mathematical relationship.
In both theoretical and empirical models of economic growth the Cobb-Douglas functional form is prevailing due to historical reasons, its simplicity, a relatively good data fit as well as some formal justifications-e.g. it is a first-order local approximation of any smooth production function expressed in terms of logs of inputs and output (provided such a relation exists on the level of some aggregates of output and inputs). A more general and quite popular form is translog, which is a second-order local approximation. Nowadays, APF is used, for example, as the world technology frontier in international growth comparisons and in decomposition of economic growth into its main sources, as proposed in Koop et al. (1999Koop et al. ( , 2000, where Bayesian analysis of stochastic production frontiers is applied; see Makieła (2014) for a more recent study. Analyses of the production function-type relations between aggregates are mainly performed by econometricians and empirical macroeconomists. Their focus is more on statistical issues of modelling and inference than on theoretical economic foundations of such empirical models.
Stochastic production frontier models extend traditional production functions by adding non-negative unobservable random terms that represent technical inefficiency. Such models either are completely static, or use time trends (or time-varying parameters) to capture technology changes. On the other hand, however, GDP and GNP data (mainly for the USA and some other developed economies) were used long ago to demonstrate important models and techniques of modern econometrics; see, for example, Koop et al. (1997) for a Bayesian approach to joint modelling and testing of long memory and a unit root. Describing dynamic properties of economic time series is a crucial issue, and co-integration analysis constitutes a standard framework to establish stable, long-run relations among macroeconomic variables-variables that can usually be described by integrated stochastic processes. Co-integration techniques are useful tools to avoid spurious regressions. So far, the stochastic frontier-or, more generally, a comparative-analysis of economic growth has ignored these issues when analysing panel data, even those covering longer periods, like 30 years. Although our initial motivation was rooted in stochastic frontier production functions for panel data, we focus here on a simpler, purely time-series analysis with no panel context.
Since production function specifications use data on three variables, we have to build appropriate tri-variate models for Bayesian comparisons. Thus, all our competing models consist of three equations. We start from basic VAR(p) specifications-their first two equations (for the logarithms of inputs aggregates) are also used in production function-type models; only the form of the third equation (for the log of GDP) is specific. Empirical comparisons are based on individual economies (not on a panel of countries), namely the USA and Poland, but also on the UK and Hungary-in order to check whether the results are similar for different countries, developed ones as well as those undergoing economic transformation. Since we use annual data from relatively short periods, p = 3 is taken as the maximum lag.
The Bayesian VAR framework enables us to calculate posterior probabilities of many nested and non-nested models, in particular specifications that assume cointegrating relations (for Bayesian co-integration analysis, see, for example, Koop et al. 2004Koop et al. , 2010Wróblewska 2009). In order to analytically obtain basic results, we use as much as possible the conjugate prior distributions. We also resort to the concept of Bayesian sequential cut (see, for example, Florens and Mouchart 1985;Osiewalski and Steel 1996), which allows us to separate the analysis of aggregate inputs dynamics from the main issue of analysing aggregate output given current aggregate inputs levels. This main issue is closely related to the formal econometric status of any APF-type relation. Thus, we would like to look from an a-theoretical, purely time-series co-integration perspective at the issue of existence and empirical adequacy of APF-type relations.
The aim of this study is to provide an unbiased, scientific evidence in favour or against APF, and thus to shed more light on the topic that has been on the research agenda for decades. Our contribution in this regard is threefold. Firstly, there are two main approaches used by practitioners to calculate potential output or output gap in macroeconomics: (i) a purely dynamic, time-series approach and (ii) a theory-driven approach based on APF; see, for example, Turner et al. (2016) or Alichi et al. (2017) for a survey of methods used to model macroeconomic output. We present a modelling framework that, on the one hand, addresses the dynamic properties of macroeconomic data and, on the other hand, encompasses models deeply rooted in economic theory of aggregate production and productivity. Secondly, we present a formal Bayesian model comparison, which brings together these two pieces of the literature that describe aggregate production. Thirdly, we examine the role of APF-type relations, especially Cobb-Douglas and translog, within a dynamic econometric framework and analyse if APF can be viewed as an empirically valid co-integration relation.
We are fully aware that our study requires an explicit assumption that APF is a testable, falsifiable construct. This, however, may not be feasible in some fields of macroeconomics, which greatly rely on the very existence of APF. We do not wish to dispute such studies since, given the Bayesian perspective, they merely imply a strong prior belief as regards APF-a belief that, via prior odds, simply outweighs any information that may come from (sometimes messy and distorted) macroeconomic data. We are also aware that our purely statistical approach to the relation between economy-wide aggregates of output and inputs can be criticized-even if we find a co-integration equation that can be interpreted as the APF. One should be aware of the argument given in Shaikh (1974), also discussed in Felipe and McCombie (2013), which shows that a well-fitted empirical Cobb-Douglas-type relation can be nothing more but a straightforward consequence of a simple identity between constant-price value added and the sum of wages and profits, provided that the observed shares of wages and profits are constant over time. That is, even if we find a co-integration relation with properties attributed to traditional production functions, the latter can still be considered spurious in a fundamental, economic sense. Such relation would only show that the conditions formulated in Shaikh (1974) are approximately met. However, if such co-integration relation is unlikely in view of the data, we obtain an empirical evidence against conditions that would make the APF-type equation a useful approximation of reality.
The structure of the paper is as follows: Sects. 2 and 3 present the technical details of the VAR modelling framework, Bayesian model comparison and the role of the Cobb-Douglas relation. Readers more interested in the empirical results may move forward to Sect. 4 where competing model classes are presented. Section 5 focuses on the data and empirical results of model comparison. Section 6 is devoted to the best specifications and posterior results on crucial parameters. Final remarks are summarized in Sect. 7.

Bayesian VAR modelling framework
We describe annual data on GDP (i.e. aggregate product Q t ) as well as aggregates of capital (K t ) and labour (L t ) using a tri-variate VAR(p) model for the natural logarithms of both inputs (k t ln K t , l t ln L t ) and output (q t ln Q t ). The basic form of a model for x t [k t l t q t ] can be written as where i are (3 × 3) matrices of parameters accompanying lags x t−i k t−i l t−i q t−i (i 1, . . . , p), o is a (m × 3) matrix of coefficients that post-multiplies d t , the row vector of m deterministic components (e.g. m 2 and d t [1 t]), and {ε t } is a tri-variate Gaussian white noise process with contemporaneous covariance matrix , a (3 × 3) symmetric positive definite matrix.
For the purposes of co-integration analysis, the particularly important representation of (1a) is the one in terms of first differences: where where, again,Φ For the parameter matrices and in (1a,b) we assume the conjugate joint prior distribution, i.e. has an inverted Wishart marginal prior distribution and has a matrix-variate normal conditional distribution (given ), that is The hyper-parameters A (a 3 × 3 symmetric, positive definite scale matrix) and s (degrees of freedom, s > 2) will be elicited in the next section. In the conditional prior of Φ ϕ (1) ϕ (2) ϕ (3) we reflect the idea that x t is, most likely, just the tri-variate random walk, i.e. x t x t−1 + ε t . Thus, we take F [I 3 0] as the prior mean. The precision of our prior assumptions on is reflected by the choice of W , as Σ ⊗ W is the covariance matrix of vec( ) given . We assume that W , a square matrix of order 3p + m, is block-diagonal with I 3 , 1 2 I 3 , . . . , 1 p I 3 , W 0 as diagonal blocks. Our prior resembles the so-called Minnesota (Litterman) prior (see, for example, Doan et al. 1984;Litterman 1986), except that we use a purely Bayesian approach and our prior is exactly the marginal distribution of the parameters; thus, it does not use hyper-parameters based on the data being modelled.
The induced conditional prior for the matrixΦ RΦ − F, which groups the conditional mean parameters in (2b), is matrix-variate normal: vec Φ |Σ ∼ The simple prior distribution described here enables us to use purely analytical approach in order to obtain basic posterior results and the marginal data density (MDD hereafter). Of course, our conjugate prior is defined for completely free, unconstrained parameters of (1a, b) or, equivalently, (2a, b). In particular, we do not impose stability conditions that are imposed in, for example, Wróblewska (2009).
There are many ways of generating competing models with the use of this general framework. Obvious special cases are obtained by assuming different orders p of VAR(p) or imposing 0 for each p and considering VAR(p − 1) for x t . But our main task is to reconsider the production function-type relation within dynamic framework; hence, the crucial transformation of VAR(p) is the one in terms of the marginal sampling model for x (1) t [k t l t ], given the past of all three variables in x t , and the conditional sampling model for q t given x (1) t and the past of x t . This enables us to directly consider exogeneity issues and to propose many other competing models.
All this means that θ (1) (Φ (1) , Σ 11 ) is a sufficient parameterization of (3), θ (2) (δ, β, ω) is a sufficient parameterization of (4), and both groups of parameters are independent a priori, which guarantees the Bayesian sequential cut (see, for example, Florens and Mouchart 1985;Osiewalski and Steel 1996), leading not only to posterior independence between θ (1) and θ (2) (i.e. their conditional independence given observations), but also to a useful factorization of MDD given initial observations: p θ (1) and p θ (2) are prior densities and T is the number of tri-variate observations. Thus, our prior assumptions lead to complete separation of the Bayesian analysis in the marginal and conditional models (3) and (4).
The parameterization in terms of θ (1) and θ (2) is obviously not the only one that leads to the sequential cut. Instead of (1a, b), we can start from (2a, b) and obtain the following forms of the marginal and conditional sampling models: (6) can be equivalently written as δ , β, ω are sufficient parameterizations of the marginal and conditional models, respectively. Since vec Φ |Σ ∼ The conditional prior of vec φ (1)φ(2) given 11 is N 0, Σ 11 ⊗W , the conditional prior ofδ given (β, ω) is N 0, ωW , which does not depend on β, andθ (1) andθ (2) are a priori independent. Thus, under our prior structure, the complete separation of posterior inference and MDD calculations is preserved not only for (3) and (4), but also for (5) and (6). This is useful for the model formulation strategy. As long as we do not impose restrictions that link parameters of the marginal and conditional models, we can separately consider their competing variants. Consequently, if we consider n 1 variants of the marginal model and n 2 variants of the conditional model, n 1 ·n 2 models for x t can be formulated and compared. Note that it is formally irrelevant which particular parameterization we choose-(3) or (5) for the marginal model, (4) or (6) for the conditional model. For instance, it may be easier to formulate separate restrictions on θ (1) andθ (2) (than on θ (1) and θ (2) ) in order to create an interesting (interpretable) model for x t . Incidentally, remind that θ (h) andθ ( j) are a priori independent (h, j 1, 2; h j). Since θ (1) ⊥θ (2) and φ (1)φ(2) is a (one-toone) transformation of ϕ (1) ϕ (2) , it is clear thatθ (1) ⊥θ (2) ; starting fromθ (1) ⊥θ (2) , by the same argument we get θ (1) ⊥θ (2) .

The role of the Cobb-Douglas-type relation in the modelling strategy
In this section we focus on the conditional sampling model for output and present the use of the relation between current levels of all three variables in both creating specific models and eliciting prior distribution of the conditional covariance matrix .
In both equivalent formulations of the conditional sampling model for output given inputs, (4) and (6), the logarithm of output is linearly dependent on the logarithms of current input levels (plus some linear function of past values of k t , l t , q t ). In view of the traditional concept of the APF, the presence of the relation between output and current inputs in the conditional model could be called the contemporaneous or immediate APF. Since we work within the VAR model framework for logs of Q t , K t and L t , this relation takes the Cobb-Douglas form. It is nothing to be empirically discovered. It is obtained by construction, as the nonzero vector β Σ −1 11 Σ 12 is a consequence of nonzero conditional correlation between output and current inputs, i.e. nonzero Σ 12 in the contemporaneous covariance matrix (conditional with respect to the past of x t ).
As we consider standard VAR models, the conditional covariance matrix is constant over time, so are the immediate capital and labour elasticities of output. Making this covariance matrix vary over time would lead to time-varying elasticities in the spirit of Koop et al. (2000). That is, the immediate Cobb-Douglas APF with either constant or variable parameters is an obvious part of the standard VAR or a more general (TVP VAR) model.
Although the static Cobb-Douglas form is just a matter of re-parameterization of the basic VAR framework, there are some deeper, important questions, which can be answered through empirical investigations only. First, we are interested whether the immediate APF-type relation is the only important part of the conditional sampling model. If so, the very old idea of a purely static Cobb-Douglas APF would seem still relevant. If not, we may enquire about empirical validity of its different extensions, like generalizing its functional form, keeping deterministic trend in the equation, adding one-sided inefficiency terms, replacing β by a time-varying vector of parameters. From the viewpoint of dynamic econometrics, the most interesting issue amounts to testing if the immediate Cobb-Douglas APF-type relation is also a cointegration relation linking all three aggregate variables, if they are treated as integrated stochastic processes. If the issues mentioned above can be formalized as restrictions on-or extensions of-the conditional sampling model only, such modelling strategy preserves the Bayesian sequential cut. In this case weak exogeneity of inputs (for inference on any function of the conditional model parameters) is assumed. Of course, weak exogeneity can be tested within the full, three-equation framework-as well as the presence of any co-integration relation among the three (obviously nonstationary) variables. These issues require Bayesian analysis of the joint model for inputs and output-without any separation of MDD calculations-and thus they are computationally more demanding.
Before we present the competing models and their Bayesian comparison using observations from four countries, let us use the immediate Cobb-Douglas APF idea to elicit the hyper-parameters (A and s > 2) of the inverted Wishart prior of . Since, given ω, β is normal with mean A −1 11 A 12 and covariance matrix ω A −1 11 , and τ ω −1 has the gamma distribution with mean sa −1 qq.1 and variance 2sa −2 qq.1 , the marginal prior distribution of β is Student's t with s > 2 degrees of freedom, mean A −1 11 A 12 and covariance matrix a qq.1 s−2 A −1 11 . Although, following Fisher (1969), Shaikh (1974) and Felipe and McCombie (2013), we are quite sceptical about the concept of the APF, we do favour the traditional Cobb-Douglas case (with constant returns to scale) through prior elicitation. Thus, this disputable concept, so popular in many economic models, stands in the centre of our prior elicitation and β is treated as the vector of capital and labour elasticities of output that, most likely, are equal and sum up to unity, with prior standard deviations 0.2 for each elasticity and 0.1 for their sum. This leads to five equations with seven unknowns; the sixth equation is obtained by assuming that the diagonal elements of A are equal. Finally, we get s , the corresponding marginal prior for τ ω −1 is gamma 13 3 , a 30 . We assume a = 1, which results in the prior mean 130 and prior standard deviation 10 √ 39 for the precision parameter τ . Finally, let us focus on the prior distribution of the parameters of just one equation in (1b). Without loss of generality, we consider only the first equation, where ϕ (1) given σ kk is normal (with mean 1 0 and covariance matrix σ kk W ) and σ −1 kk is gamma (with parameters s−2 2 and a kk 2 , i.e. with mean s−2 a kk and standard deviation a −1 kk √ 2(s − 2)). Hence, the marginal prior distribution of ϕ (1) is the Student's t distribution with s − 2 degrees of freedom, location vector 1 0 and precision matrix

Type A models: standard VAR and VEC specifications
Since we work with annual data, we only consider VAR(p) models with p ∈ {1, 2, 3} and use the parameterization (2a, b), which enables us to impose rank restrictions on the (3 × 3) long-run multiplier matrix . Assuming that r rank ( ) is a particular number from the set {0, 1, 2, 3}, we generate four (very different) cases of VAR(p).
In the case of r 0 (VAR(p-1) for x t , 0) or r 3 (VAR(p) for x t , unrestricted non-singular ) the sequential Bayesian cut is preserved when we work with appropriate sufficient parameterizations of the marginal model for inputs and the conditional model for output given current inputs, like in (5) and (6). Basic results can be obtained analytically, and the marginal data density factorizes as MDD C 1 C 2 .
The cases of r 1 and r 2 amount to one or two co-integration relations with no restrictions other than the basic identifying ones. Such specifications assume that the same parameters (e.g. co-integrating vectors) appear in all three equations and thus Bayesian cut is precluded. There is no MDD factorization, and numerical tools have to be used (see "Appendix" for details of Bayesian co-integration analysis adopted in this study).
All type A models belong to the VAR family; they differ in terms of p, r and the presence and character of the deterministic variables d t in (2a).

Type B models: based on production function
Type B models preserve (by their construction) the Bayesian sequential cut and thus MDD factorization. In fact, in all type B models, as the marginal model for current inputs, we take the first two equations (for x (1) current inputs. The basic (and the simplest) one corresponds to zero restrictions on the whole vector δ in (4) except for the intercept; that is, the third equation consists of the static Cobb-Douglas APF and nothing else. In other type B models the conditional part (for output given current inputs) is richer; its more general form can be written as where v t ∼ ii N (0, ω) and z t ≡ 0 or z t ∼ ii E x p(λ); if they appear, the exponential terms z t (with mean and standard deviation λ) are independent of symmetric errors v t and represent period t technical inefficiency. The parameters β [β 1 β 2 ] , δ 0 , δ 1 and ω appear also in (4), the conditional part of type A models with r 0 or r = 3, so we keep for (β 1 , β 2 , δ 0 , δ 1 , ω) the same conjugate prior distribution as in (4). The translog parameters (γ 1 , γ 2 , γ 3 ) are a priori normally distributed (given ω and the remaining parameters) with zero mean and covariance matrix 60 −1 ωI 3 ; higher variances have also been tried in the empirical part, always leading to worse Bayesian models in terms of MDD values. If z t 0 for all t, (7) can be treated as the classical normal linear regression model with a conjugate prior; C 2 and basic posterior results can be obtained analytically.
In cases where exponential inefficiency terms are introduced, we assume that λ and the vector of other parameters are independent and λ −1 is a priori exponential with mean (− ln r * ) −1 , where r * ∈ (0, 1) is the prior median of technical efficiency (see van den Broeck et al. 1994). Posterior inference is based on Gibbs sampling, as described in Osiewalski and Steel (1998), where nT inefficiency terms are assumed conditionally independent not only over n units, but also over T periods; this is directly useful now, as in the present work we have n 1 (each economy is treated separately.) Evaluating C 2 in models with inefficiency is a non-trivial numerical task; we use a very quick and efficient method, the modified arithmetic mean estimator proposed in Pajor (2017).
Although the conditional part of any type B model is static (except for a possible deterministic trend), the marginal part is always dynamic. Thus, the first two equations (taken from some VAR(p) model) describe the dynamics of input aggregates (conditionally not only on their own past, but also on the past of the aggregated output) and the third equation postulates a strong (almost deterministic) relation between the aggregates of output and current inputs.
Note that sampling models that can be obtained either by certain restrictions in class A or, equivalently, by appropriate restrictions in class B are particularly important for fair comparison of these two classes. Keeping, for the parameters of such a common specification, the same marginal distribution in B as in A makes prior elicitation in class B easier and enables making Bayesian model comparison as coherent as possible. The full-efficiency (z t ≡ 0) Cobb-Douglas production function-type relations with and without linear trend are two obvious special cases that can be obtained from either (4) or (7); thus, they belong to both classes A and B.

The data and results of initial model comparison
We use annual data prepared for international comparisons and published in Penn World Tables, version 8.0; K t is capital stock (with PWT 8.0 code rkna), L t denotes total hours worked by engaged persons (given as emp*avh), and Q t is real GDP (rgdpna). Four countries are considered. For the USA and UK, the observations since 1979 till 2011 are used, but the first three data points serve as initial conditions; thus, we model T = 30 tri-variate observations from the period 1982-2011. In the case of Poland, we model only T = 20 observations, covering the period 1992-2011, in order to avoid modelling pre-transformation data; the data from 1989 to 1991 are used as initial conditions. In the case of Hungary, which was a more developed economy under the communist regime, we use the data from the period 1980-2011 and focus on modelling T = 29 observations from 1983 to 2011. Main interest is in the results for the USA, the world leader, and Poland, an example of successful economic transformation. The results for the UK and Hungary serve as a sensitivity check-whether similar findings can be obtained for different economies. The data are presented in Fig. 1. Due to scale differences between capital and product variables (k t ln K t , q t ln Q t ), relatively smooth upward trends constitute a dominating picture, with fluctuations and short-term deviations being much less visible. Labour (l t ln L t ) has its own scale on the right-hand side in each chart, so its fluctuations are more visible. However, the stochastic and dynamic character of all three aggregates is obvious when we look at the results of model comparison.
The natural Bayesian characteristic of how well a model fits the data is p(x 1 , . . . , x T |ψ 0 ), the marginal data density (MDD) value for the observations at hand. MDD values constitute the main ingredient to the formal Bayesian procedure of model comparison; see, for example, Osiewalski and Steel (1993). Using MDD values, each reader can use his or her own prior distribution on the model space and then easily calculate the resulting posterior model probabilities. In order to avoid selecting prior model probabilities, we are not going to report posterior probabilities of competing specifications. Tables 1 and 2 contain the decimal logarithms of MDD values for type A and B models, respectively. Of course, these values are based on particular prior distributions on model parameters that we have proposed.
The MDD values, presented in Table 1 for different VAR(p) models (p = 1,2,3), indicate that simple specifications with non-stationarity, namely VAR(0), VAR(1) and VAR(2) without constants for the tri-variate differenced series x t , are the best ones. The second best are VAR(1), VAR(2) and VAR(3) models for levels, with one cointegration relation and a constant restricted to this relation (or even without any constant). Thus, Bayesian co-integration analysis leads to the conclusion that the annual data on aggregate inputs and output are best described by three stochastic trends (in particular, just by a tri-variate random walk), with some possibility of only two stochastic trends and a long-run relation linking all three variables. However, three stochastic trends-precluding any long-run relation-are much more likely. Under equal prior probabilities for all models, specifications based on first differences are more than 10 times more probable a posteriori than co-integrated VAR models for levels. Also, these co-integration relations do not show any features of a regular production function. All other specifications appearing in Table 1 can be omitted in further considerations as they are unlikely in view of the data. The results presented above are strikingly similar for all four economies, and, in view of the relatively short time span of the data, they are strong even for the Polish economy, represented by 20 data points only. Table 1 is based on a very diffuse prior for the linear trend parameters, as we use W 0 100I 2 in the prior covariance matrix for the coefficients corresponding to d t [1 t]. It is not surprising that the models with time variable t are less likely-in particular, models with an unrestricted trend become worse as the rank of Π increases; the worst models appear at the bottom of Table 1. Using much more precise prior for the deterministic components, with 1 and 0.01 as the diagonal elements of W 0 , leads to the same general (qualitative) conclusions, but makes models with deterministic terms slightly more likely a posteriori. In our final results in the next section we take advantage of this increased role of the constant term under the more precise prior.
The MDD values for the APF (or type B) models, presented in Table 2, are based on our initial assumption that the joint tri-variate type B model always uses the first two equations from one of the best VAR(p) models. So, we have taken these equations of the VAR(1) specification for x t (without constants) as the marginal sampling model for inputs, and we have assumed different specifications of the general form (7) as conditional models for output given current inputs. All our type B models preserve a Bayesian sequential cut by construction, so MDD C 1 C 2 -where, for example, log(C 1 ) 22.64 for the USA. However, the values of log(C 2 ) are so small for most type B models that we cannot treat them as competitors to the best type A models. The basic, static, full-efficiency Cobb-Douglas APF model is completely unlikely in view of the data. Extending it to the translog specification also does not seem to provide any substantial difference (with some exception to Hungary) and adding exponential inefficiency terms even worsens the initial situation, since such extension is clearly not supported by the data. The only model extension that is worth noting amounts  is the decimal log of marginal data density; under equal prior odds, a difference in log(MDD) equal to one indicates that one model is ten times more likely than the other (in view of the data)

Table 2
Decimal logarithms of MDD values for different type B (production function) models The  CD, Cobb-Douglas; TR, translog; "-t" indicates time trend in the production function; r*, prior median of technical efficiency; u t , type of inefficiency prior; log(MDD) is the decimal log of marginal data density; APF stands for aggregate production function; under equal prior odds, a difference in log(MDD) equal to one indicates that one model is ten times more likely than the other (in view of the data) to adding linear trend to the basic APF (again, with the exception of Hungary), but such primitive dynamics cannot compete with the best co-integrated VAR models. We have also considered-among many other type B specifications, not mentioned in Table 2-the Cobb-Douglas APF with time-varying parameters, proposed in Koop et al. (2000). However, describing Cobb-Douglas elasticities by a certain bivariate AR(1) process has appeared to be a worse modelling strategy than just adding a linear trend.

A synthesis and final results
Our empirical results presented in the previous section suggest that a chance to obtain a good type B specification, hopefully competing with VAR (i.e. type A) models, is in richer dynamics in the APF equation. In order to achieve this goal, we extend a simple Cobb-Douglas model (with or without trend) in an old-fashioned manner, by adding an autocorrelation term. Hence, let us consider the following specification: It can be treated as a member of class B, if we appropriately extend (7) to cover autocorrelation. On the other hand, (8) results from (4) if (taking δ 1 ρ) we impose the restrictions: δ 2 −δ 1 β 1 , δ 3 −δ 1 β 1 and δ i 0 for i 4, . . . , 3 p. In fact, (8) can be obtained as the conditional part in the co-integrated VAR(1) model with one co-integrating relation, [−β 1 − β 2 1] as the normalized co-integrating vector and weakly exogenous inputs: The co-integrated VAR(1) model in (9) has a very interesting interpretation. In (9) it is assumed that (1) All three variables are conditionally correlated (given their past), as it is in any type A model where matrix has no zeros off the diagonal; (2) The inputs formation is described by two stochastic trends; (3) Both inputs are weakly exogenous for inference on the parameters in (8); (4) The level of output, given current levels of inputs and the past of all variables, is determined by the Cobb-Douglas-type relation, both through its "immediate" impact and through deviations from it, which occurred in the previous period; (5) The "immediate" Cobb-Douglas-type relation is a co-integrating relation as well.
Thus, the joint model (9), with its conditional part (8), reconciles the traditional Cobb-Douglas APF ("immediate" and static) with the concept of co-integration, fundamental in modern econometrics. Note that this model significantly differs from standard type A models with r 1 (see Sect. 4). Firstly, it imposes weak exogeneity of inputs. Secondly, the normalized co-integrating vector [−a 1 − a 2 1] reflects the conditional (contemporaneous) correlation structure between output and inputs, as a 1 β 1 , a 2 β 2 and β Σ −1 11 Σ 12 (or the other way round: conditional correlation reflects the co-integration relation).
The joint specification (9) is of particular interest, but it may occur too parsimonious to win the competition with richer structures. However, it can be easily generalized, keeping all its crucial properties. As in the case of any type B model, the first two equations of (9)-i.e. the marginal model for inputs-can be replaced by two equations with the highest value of C 1 in class A. As the VAR(2) model with 0 (assuming three stochastic trends) is one of the three best specifications of type A, it is crucial to consider its close VAR(2) alternative with only two stochastic trends and the "immediate" Cobb-Douglas-type relation as the co-integration relation: The first two equations in (10) give the assumed value of C 1 , the first component of MDD, if both their intercepts are zero. The conditional model for output given current inputs can be written in the following form, with the Bayesian sequential cut being preserved: v t is a Gaussian white noise (with variance ω); given ω, the parameters β,δ * and δ 0 are a priori independent, with conditional normal prior distributions presented in Sect. 2, just below formula (6). In particular,δ * ∼ N 0, 1 2 ωI 3 andδ 0 ∼ N (0, ωw 00 ). Note that the zero restriction onδ * leads to the simpler specification (8). In Table 3 we present the decimal logarithms of MDD values based on the assumed C 1 and on C 2 corresponding to different values of ρ in the conditional model in (11). Since no dynamic stability constraints have been imposed in type A models, we consequently do not restrict ρ to the unit interval and the highest MDD values can be obtained even for ρ slightly above 1. As they do not lead to interesting results, we do not focus on specifications with ρ free, but on models with fixed values of this parameter, namely ρ 1 (i.e. VAR with three stochastic trends) and ρ just below 1 (i.e. VAR with two stochastic trends, "immediate" Cobb-Douglas relation as the co-integration relationship and a slow adjustment). Models with and without constant are compared; ifδ 0 is present, then w 00 1 is assumed in the prior distribution, because w 00 100 led to lower value of C 2 . Our task is now to find close competitors to VAR specifications (without constants) for first differences of logs of the original data; w 00 100 would preclude finding them, as it is clear from Table 1. Under equal prior probabilities, three stochastic trends are more likely a posteriori than the co-integrating relation of the Cobb-Douglas form, but by less than one order of magnitude for the USA and the UK (and even less for Hungary and Poland). If an economist has strong prior beliefs that a stable, long-run APF is an adequate and useful concept for macroeconomic analyses, and the case of three stochastic trends has only small prior probability (say, less than 0.1), then-looking at our results of model "ρ free"-exogeneity is assumed, but co-integration parameters are not related to β 1 and β 2 ; ρ is integrated with the use of its N 1,  (11) and their sum-informative priors; prior densities are plotted using dashed line; posterior densities are plotted using: dash-dot line for ρ 1; solid line for ρ 0.95; dotted line for ρ 0.5; β 1 , β 2 and β 1 + β 2 are capital, labour and scale elasticities, respectively; model with ρ 1 has the highest marginal data density (i.e. under equal prior odds it is the most likely of the three presented given the data); model with ρ 0.5 has the lowest marginal data density comparison-such economist still chooses (11) with ρ just below 1 as a better model than the specification in terms of first differences alone. Now the situation is different than in the case of comparison between pure type A models (see Table 1), where we did not impose any extra restrictions on the specifications with one co-integration relation and they were more than one order of magnitude worse than the models assuming three stochastic trends. As we can see, the additional assumptions (weak exogeneity of inputs and equivalence between the co-integration relation and the "immediate" Cobb-Douglas relation, together with fixing ρ just below 1 and introducing the constant term of high prior precision), imposed jointly, are helpful to make the co-integration VAR model a competitor to the VAR model for first differences.
Finally, in Figs. 2 and 3 we present plots of the marginal prior and posterior densities of β 1 , β 2 and their sum; the posterior densities correspond to three values of ρ: namely ρ 1, ρ 0.95 and ρ 0.5. The value ρ 0.99 (that yields a particularly good model) leads to almost the same posterior densities as ρ 1, so there is no point in plotting them separately. Figure 2 corresponds to our original prior specification for the parameters of (11), and Fig. 3 is based on 100 times smaller prior precision for β 1 , β 2 and their sum.
As our model specification gets better (i.e. the closer we are to the case ρ 1, which amounts to three stochastic trends and lack of any co-integration relation), the marginal posterior distributions of β 1 , β 2 and their sum become very similar to the marginal prior distributions. This empirical result, the same for all four different data sets, indicates that our inference-on the parameters that have clear interpretation within the APF context-is very fragile and based mainly on prior assumptions, if we restrict to relevant dynamic models. For other specifications, which we can treat as completely inadequate, our posterior inference seems to be driven by the data.  (11) and their sum-diffuse priors; prior densities are plotted using dashed line; posterior densities are plotted using: dash-dot line for ρ 1; solid line for ρ 0.95; dotted line for ρ 0.5; β 1 , β 2 and β 1 + β 2 are capital, labour and scale elasticities, respectively; model with ρ 1 has the highest MDD (i.e. under equal prior odds it is the most likely of the three presented, given the data); model with ρ 0.5 has the lowest marginal data density However, any conclusions based on a highly misspecified model can be misleading. It seems that, for our data covering the decades around the year 2000, the APF cannot be confirmed even as a purely empirical relation explained in Shaikh (1974). The dynamics of the output and inputs aggregates is best described by a tri-variate random walk.

Concluding remarks
The concept of modelling an economy-wide output via aggregate production function, APF, although fundamentally questionable and criticized, has been very important for both the theory of economic growth and empirical growth studies (e.g. growth accounting, development accounting). However, the studies have not focused on the empirical justification of APF within the modern dynamic econometrics. For this reason, we have used annual data on total production and two input aggregates in order to formally compare basic time-series and more traditional models. The crucial issue in modelling this tri-variate, non-stationary time series is to adequately capture its dynamics. We start within the VAR framework and stress that the "instantaneous" or "shortrun" Cobb-Douglas-type relation appears through an obvious re-parameterization and representation of VAR in terms of the conditional and marginal models-for the output and inputs, respectively. The important empirical question is whether such APF-looking relation is also a co-integration relation (linking aggregate output with aggregate inputs) based on modern econometric techniques. If so, it could be treated as a valid tool to describe such links and interpreted at least as in Shaikh (1974).
For the purpose of formulation and comparison of our competing models we have devised a fully Bayesian modelling and inference framework. The framework is rooted in both a purely statistical, time-series analysis of the data and the macroeconomic theory of APF. This makes it particularly appealing to practitioners and statistical agencies who seek a well-founded framework for modelling the aggregate output. Furthermore, since Bayesian model comparison is sensitive to prior distributions, we have conducted our research carefully, keeping the same Bayesian Cobb-Douglas model in the two general classes (A and B); this model appears as a special case in class A, and it is the starting point for extensions in class B. In order to make the comparison fully operational, reduce the computational burden and avoid the possibility of critiques from the purely numerical perspective, we have restricted to the simplest prior distribution classes, like the natural conjugate one in the case of basic VAR models. Of course, other Bayesian models considered (co-integrated VAR models, stochastic frontier specifications) required much more effort, but they were built around the basic structures.
In fact, we have favoured a priori the regular, linearly homogenous Cobb-Douglas relation by using it to partially elicit the prior for the VAR covariance matrix. Despite the central role of the Cobb-Douglas case in our Bayesian modelling strategy, posterior results have not confirmed the empirical relevance of the APF-type relation in modelling yearly input and output data from individual economies. It is worth noting that we have also explored possible extensions to traditional Cobb-Douglas, translog in particular. However, an APF based on the translog specification has turned out to be less probable a posteriori.
Among all specifications under consideration, the best ones are VAR(0), VAR(1) and VAR(2) models for the logarithmic growth rates of output and inputs aggregates. Thus, our tri-variate series is (most likely) best described by three stochastic trends with only "instantaneous" Cobb-Douglas-type relation, reflecting possible conditional correlation between current output and inputs. The second best specifications are the specially constructed models with the error correction term in the output equation only. Therefore, less likely than the three stochastic trends, but still probable, are two stochastic trends, which are responsible for the dynamic formation of exogenous inputs, along with the co-integrating Cobb-Douglas-type relation, the same as the "instantaneous" one.
This main result of model comparison is not totally conclusive (in favour of three stochastic trends), which is rather obvious given the relatively short observation periods. However, the empirical role of APF-type relation is further diminished by poor identification of its crucial economic characteristics within the best specifications with co-integration; i.e. the better the model is, the less informative our posterior inference. Our results are strikingly similar for all four data sets-for the leading developed economies (the USA and the UK), as well as for the two transforming economies (Poland and Hungary)-which makes the findings more interesting.
An extension of this study could, perhaps, consider panel data or longer time frames. In particular, panel data with their cross section component can bring a new dimension of aggregate product's variation which could be relevant in examining the APF. Nonetheless, the results presented in this study suggest that APF may be difficult to support empirically, at least if we look at it from dynamic econometrics perspective. This can be an additional argument in the debate summarized in Felipe and McCombie (2013). vec(B Π ) ∼ N 0,