1 Introduction

In many contexts, longitudinal data are available where the outcome of interest, along with individual-specific covariates, is observed only conditional on a non-random selection mechanism, thus giving rise to informative missing values. For instance, two interesting situations in economics concern the time pattern of the amount of remittances from migrants to the home country (see Bacci et al. 2019) and the portfolio choices of investors over the life-cycle (see Fagereng et al. 2017). In both cases, a mechanism of selection acts generating non-random missing values: in the first case the amount of remittances is observed only when the migrant decides to send money home; in the second case, the amount of the investment is observed only when the investor is active on the financial market. In these types of context, the interest is often in clustering sample-units in homogenous groups that share a common behavior in terms of both selection variable and outcome of main interest.

In order to analyze data of the type outlined above, we propose an approach based on a bivariate latent class growth trajectory model (Muthén and Shedden 1999; Muthén 2004; Bollen and Curran 2006; Nylund et al. 2007; Bartolucci and Murphy 2015). This approach relies on a selection model component, in the sense of Heckman (1979), with a binary response variable that describes the selection phase and a continuous response variable corresponding to the outcome of main interest. Correlated error terms are also included in the model to account for the endogeneity of the selection process. Furthermore, the approach is based on the assumption that there exist latent classes (i.e., unobservable clusters defined by a discrete latent variable) of individuals with each class having a specific time trajectory for both the continuous response variable and the selection variable. Moreover, the probability of belonging to each latent class (class weight) is assumed to be affected by individual time-constant (baseline) characteristics, whereas time-varying covariates directly affect the two response variables. The resulting model we propose is thus composed of three submodels: (i) a probit model for the selection variable; (ii) a linear model for the response variable of main interest; and (iii) a multinomial logit model for the latent class membership.

As usual with latent variable models, parameter estimation is achieved through the maximum likelihood method, using an Expectation-Maximization (EM) algorithm (Dempster et al. 1977). This algorithm is based on alternating two steps that compute and maximize the expected value of the complete data log-likelihood. In order to accelerate the estimation process, after a suitable number of EM steps, the maximization of the incomplete data log-likelihood proceeds by quasi-Newton steps that directly use the score function to update the model parameters. The score vector is also used to compute, after a numerical differentiation, the observed information matrix that, in turn, allows us to obtain standard errors for the parameter estimates. The overall estimation algorithm has been implemented by means of a series of R functions which are available on Github at the web page https://github.com/Silvia-Pand/BivLT.

It is important to recall that the presence of the latent variable produces a model-based clustering (Fraley and Raftery 2002), with clusters corresponding to the estimated latent classes. As known, the estimation algorithm requires that the number of latent classes is specified in advance. In absence of substantial reasons that may suggest this number, its choice may be driven by information criteria typically adopted in the finite-mixture literature, such as the Akaike Information Criterion (AIC; Akaike 1973) and the Bayesian Information Criterion (BIC; Schwarz 1978). Furthermore, once the model is estimated, the most commonly adopted approach for clustering the sample units is based on the Maximum A Posteriori (MAP) rule (Goodman 1974, 2007). According to this approach, an individual is assigned to the latent class corresponding to the highest posterior probability, that is, the conditional probability of the latent variable given the observed data.

Finally, marginal effects are computed in order to facilitate the interpretation of the regression coefficients. In particular, they are computed as the partial derivatives of the expected value of both response variables with respect to the corresponding time-varying covariates. In practice, these marginal effects allow us to evaluate how the dependent variables (outcomes of interest) change when the independent variables (covariates) change.

As an illustrative application of the proposed bivariate latent class growth trajectory model, we analyze the dynamics of portfolio choices of Italian households over the life-cycle and investigate the factors influencing the heterogeneity of both risky asset market participation and investment intensity. The empirical analysis is carried out based on an unbalanced panel dataset of Italian households from nine waves of the Bank of Italy’s Survey of Household Income and Wealth (SHIW) over the 1998–2014 period.

Our application relies on the proposed bivariate latent class growth trajectory model that is specified in a suitable way, according to a probit submodel for the probability of participating to the financial market and a linear submodel for the share invested. Both responses are affected by time-varying socio-economic and demographic characteristics of the household. Among these time-varying covariates, an important role is played by those measuring time (i.e., year of interview and household head’s age), as they drive the shape of the time trend of the response variables in the latent classes. Moreover, a multinomial logit submodel is specified for the latent class membership, being class weights dependent on time-constant household characteristics. Thus, differently from previous studies that are mainly population-average, our methodological approach allows life-cycle patterns and time trajectories of household risky investment decisions to be cluster (latent class) specific. The proposed methodological approach significantly contributes to the existing literature by allowing to explicitly take into account the existence of (unobservable) clusters of households characterized by a specific behavior in terms of both risky asset market participation and amount invested. In such a way, we are able to properly account for heterogeneity in household portfolio choices and reconcile the apparently contradictory results obtained in previous empirical studies.

In summary, the contribution of the present paper is, first of all, that of guiding the reader through using complex modeling for answering applied questions. Moreover, we also provide some methodological advances in terms of estimation with particular regard to the accelerated EM algorithm. Finally, we provide interesting results and interpretations in the specific field of application related to household risky investment decisions, also in connection with the prevailing economic theories in this field.

The remainder of the paper is organized as follows. Section 2 illustrates the proposed statistical model and its assumptions. Section 3 investigates inferential issues related with the proposed model. In particular, we provide details on the EM algorithm used to maximize the log-likelihood function (Sect. 3.1), on the computation of the standard errors for the parameter estimates, and on some aspects related with model selection (mainly, selection of number of latent classes) and marginal effects (Sect. 3.3). Data and results of the application are described in Sect. 4, whereas in Sect. 5 we provide some final conclusions.

2 The statistical model

In this section we describe the bivariate latent growth model: we first introduce the basic notation and then we illustrate its main assumptions.

2.1 Basic notation

For a sample of n individuals, let \(B_{it}\) denote the selection variable which is equal to 1 if the continuous variable of interest, denoted by \(Y_{it}\), is observable and to 0 otherwise, with \(i = 1, \ldots , n\) and \(t = 1, \ldots , T_i\), where n is the sample size and \(T_i\) is the number of time occasions for individual i. In oder to model the informative missing mechanism, we also introduce the continuous variables \(B_{it}^*\) underlying the selection process, so that

$$\begin{aligned} B_{it} = 1&\quad \mathrm{if\;} B_{it}^* > 0, \\ B_{it} = 0&\quad \mathrm{if\;} B_{it}^* \le 0. \end{aligned}$$

Note also that \(B_{it}\) may be unobserved for one or more occasions. This leads to a non-monotone missing patterns of the unbalanced panel data, in which an individual may not be in the sample for certain time occasions, typically because it is not interviewed by design. For instance, in the application motivating the proposed paper, \(B_{it}^*\) is the propensity of household i to participate to the risky financial market at occasion t, while \(Y_{it}\) is the percentage of investments in risky financial assets out of total financial wealth, which is held at occasion t by household i.

Let \({\mathbf {B}}_i=(B_{i1},\ldots ,B_{iT_i})'\) and \({\mathbf {Y}}_i = (Y_{i1}, \ldots , Y_{iT_i})'\) be the random vectors of binary and continuous variables previously defined for subject i. Missing observations on \(B_{it}\), due to the absence of the unit from the sample, and consequently on \(Y_{it}\) and on the corresponding covariates, are non-informative because we rely on the missing at random assumption (MAR; Rubin 1976; Little and Rubin 2002) as motivated in the following.

We also denote by \(U_i\) the discrete latent variable identifying classes of individuals with the same behavior across time. The distribution of these latent variables is based on k support points, labeled from 1 to k, which correspond to the number of latent classes and have specific probabilities, as defined below. We finally denote by \({\mathbf {w}}_{it}\) and \({\mathbf {x}}_{it}\) the observed vectors of time-varying covariates \({\mathbf {W}}_{it}\) and \({\mathbf {X}}_{it}\), affecting \(B_{it}\) and \(Y_{it}\), respectively, and by \({\mathbf {z}}_i\) the observed vector of time-constant covariates \({\mathbf {Z}}_{i}\), affecting the distribution of the latent variable \(U_i\). Vectors \({\mathbf {w}}_{it}\), \({\mathbf {x}}_{it}\), and \({\mathbf {z}}_i\) include a first element equal to 1 to accommodate the constant term.

Note that, since usually the main interest is in assessing the time trajectories of variables \(B_{it}\) and \(Y_{it}\), vectors \({\mathbf {w}}_{it}\) and \({\mathbf {x}}_{it}\) should have elements which are function of time, apart from time-varying covariates, for \(i = 1, \ldots , n\) and \(t = 1, \ldots , T_i\). A possible approach relies on using polynomials of order r (\(r = 1, 2, \ldots \)) of one or more time variables (e.g., year of interview). A common alternative consists in modeling the effect of the time through dummies for each time point (e.g., for each year of interview), but this approach is actually feasible only when the number of time points is limited. Alternatively, a semi-parametric formulation of the time effect may be based on splines (Green and Silverman 1994): this approach is more flexible with respect to the parametric one based on polynomials but it is usually less parsimonious. In the application motivating this paper, vectors \({\mathbf {w}}_{it}\) and \({\mathbf {x}}_{it}\) include suitable polynomials both for the year of interview and the household head’s age.

2.2 Model assumptions

We formulate a bivariate latent growth model (Muthén and Shedden 1999; Muthén 2004; Bollen and Curran 2006; Nylund et al. 2007) that accounts for different behaviors in the population, defined in terms of latent trajectories. A path diagram of the proposed model is displayed in Fig. 1.

Fig. 1
figure 1

Path diagram of the bivariate latent growth model, for a generic individual i

Subjects are grouped into a finite number of unobservable (i.e., latent) classes characterized by homogenous behaviors. These latent classes are defined on the basis of the discrete latent variable \(U_i\), whose distribution is given by

$$\begin{aligned} \pi _u({\mathbf {z}}_i) = p(U_i = u| {\mathbf {Z}}_i = {\mathbf {z}}_i), \quad u=1, \ldots , k. \end{aligned}$$

The above mass probabilities, in general, depend on individual time-constant characteristics, \({\mathbf {Z}}_i\).

Coherently with the well-known selection model of Heckman (1979), we assume that the two responses \(B_{it}^*\) and \(Y_{it}\) have a bivariate Normal distribution, conditionally on the latent class and covariates:

$$\begin{aligned} \left( \begin{array}{cc} B_{it}^* | U_i = u, {\mathbf {W}}_{it} = {\mathbf {w}}_{it} \\ Y_{it} | U_i = u, {\mathbf {X}}_{it} = {\mathbf {x}}_{it} \end{array} \right) \sim N_2[{\varvec{\mu }}_u({\mathbf {w}}_{it},{\mathbf {x}}_{it}), \varvec{\Sigma }], \end{aligned}$$
(1)

where

$$\begin{aligned} {\varvec{\mu }}_u({\mathbf {w}}_{it},{\mathbf {x}}_{it}) = \left( \begin{array}{cc} {\mathbf {w}}_{it}' {\varvec{\beta }}_u \\ {\mathbf {x}}_{it}' {\varvec{\gamma }}_u \end{array} \right) \quad \mathrm{and} \quad \varvec{\Sigma } = \left( \begin{array}{cc} 1 &{} \quad \rho \sigma \\ \rho \sigma &{} \quad \sigma ^2 \end{array} \right) . \end{aligned}$$

In the previous expressions, \( {\varvec{\beta }}_u\) is a vector of class-specific regression coefficients measuring the effect of covariates in \({\mathbf {w}}_{it}\), collected in matrix \({\varvec{\beta }}= \{{\varvec{\beta }}_u, u=1,\ldots ,k\}\), \( {\varvec{\gamma }}_u\) is a vector of class-specific regression coefficients measuring the effect of covariates in \({\mathbf {x}}_{it}\), collected in matrix \({\varvec{\Gamma }}= \{{\varvec{\gamma }}_u, u=1,\ldots ,k\}\), and \(\rho \) (\(-1 \le \rho \le 1\)) is the correlation coefficient that accounts for the potential endogeneity of the selection. In the model, \({\mathbf {x}}_{it}\) is assumed to be strictly a subset of \({\mathbf {w}}_{it}\). Indeed, when \({\mathbf {x}}_{it} = {\mathbf {w}}_{it}\) then severe collinearity among the regressors in the two equations arises and parameters identifiability relies only on the (non-linear) functional form of the distribution (Puhani 2000). In order to alleviate these problems, as in empirical applications, exclusion restrictions are imposed according to which extra regressions are included in the selection equation for \(B_{it}\) and do not appear in the outcome equation for \(Y_{it}\) (Marchenko and Genton 2012).

It is worth noting that the proposed model differs from the selection model of Heckman (1979) for the presence of mixture components that properly account for heterogeneity in the population. It also differs from the mixture latent growth model of Bartolucci and Murphy (2015) for the introduction of the correlation term. Moreover, latter has some other specific differences driven by the particular type of application in sport dealt with. Indeed, the special case with \(k=1\) coincides with the model of Heckman (1979) and the special case with \(\rho = 0\) coincides with the model of Bartolucci and Murphy (2015).

Assumption (1) implies two main correlated equations. The first equation accounts for the unobservable nature of \(B_{it}^*\) through a probit model for the probability of observing a response, that is,

$$\begin{aligned} p(B_{it} = 1| U_i = u, {\mathbf {W}}_{it} = {\mathbf {w}}_{it}) = \Phi ({\mathbf {w}}_{it}' {\varvec{\beta }}_{u}), \end{aligned}$$
(2)

with \(\Phi (\cdot )\) being the cumulative probability function of a normal distribution. The second equation is based on the assumption of normality of the response variable \(Y_{it}\) with constant variance \(\sigma ^2\) and expected value given by

$$\begin{aligned} E(Y_{it} | U_i = u, {\mathbf {X}}_{it} = {\mathbf {x}}_{it}) = {\mathbf {x}}_{it}' {\varvec{\gamma }}_{u}. \end{aligned}$$
(3)

We recall that \(Y_{it}\) is observed only if \(B_{it} = 1\).

A multinomial logit model is also introduced to account for the effect of the individual time-constant covariates on the class membership:

$$\begin{aligned} \log \frac{\pi _{u}( {\mathbf {z}}_{i})}{\pi _{1}({\mathbf {z}}_{i})} = \log \frac{p(U_{i} = u| {\mathbf {Z}}_{i} = {\mathbf {z}}_{i})}{p(U_{i} = 1| {\mathbf {Z}}_{i} = {\mathbf {z}}_{i})} = {\mathbf {z}}_{i}' {\varvec{\delta }}_{u}, \end{aligned}$$
(4)

where \({\varvec{\delta }}_u\) is the vector of regression coefficients measuring the effect of time-constant covariates on the odds ratio of Class u against Class 1 with \(u = 2, \ldots , k\). These parameters are collected in matrix \({\varvec{\Delta }}=\{{\varvec{\delta }}_u, u = 2,\ldots ,k\} \).

As mentioned above, in the presence of non-monotone non-informative missing observations for variable \(B_{it}\), due to the absence from the sample of unit i at occasion t, we rely on the MAR assumption. Under this assumption, the probability of the realized missing pattern, given the observed and the unobserved data, does not depend on the unobserved data. Therefore, provided that the model for this type of missing data mechanism is separated from the proposed model, these missing responses are ignorable for likelihood based inference. The resulting model may be formulated by introducing the missing data indicator \(M_{it}\) that is equal to 1 when subject i does not answer at all at occasion t and to 0 otherwise. Thus, for a certain subject i, we collect these variables in vector \({\mathbf {M}}_i = (M_{i1},\ldots , M_{iT_i})'\). The corresponding response pattern is given by \(({\mathbf {m}}_i, {\mathbf {b}}_{i,obs}, {\mathbf {y}}_{i,obs})\), with \({\mathbf {m}}_i\) being a realization of \({\mathbf {M}}_i\) and \({\mathbf {b}}_{i,obs}\) and \({\mathbf {y}}_{i,obs}\) being subvectors containing the observed components of \({\mathbf {B}}_i\) and \({\mathbf {Y}}_i\), respectively. We also introduce \({\mathbf {W}}_{i,obs}\) and \({\mathbf {X}}_{i,obs}\) to denote the matrices of all observed covariates for subject i.

The MAR assumption implies that the parameters of interest can be estimated on the basis of the log-likelihood of the vectors of the observed outcomes \(({\mathbf {b}}_{i,obs}, {\mathbf {y}}_{i,obs})\) only, without the model specification for non-informative missingness. In particular, based on the assumptions formulated above, the distribution of interest is as follows:

$$\begin{aligned}&p({\mathbf {b}}_{i,\,obs}, {\mathbf {y}}_{i,\,obs}\mid u, {\mathbf {W}}_{i,obs}, {\mathbf {X}}_{i,obs})\\&\quad = p( {\mathbf {b}}_{i,\,obs}, {\mathbf {y}}_{i,\,obs} | U_i = u, {\mathbf {W}}_{it} = {\mathbf {w}}_{it},{\mathbf {X}}_{it} = {\mathbf {x}}_{it},\,t=1,\ldots ,T_i:\, m_{it}=0 ) \\&\quad = \prod _{t: m_{it}=0}^{T_i} p(b_{it}| u, {\mathbf {w}}_{it})^{1-b_{it}}f(b_{it},y_{it}| u, {\mathbf {w}}_{it}, {\mathbf {x}}_{it})^{b_{it}}, \end{aligned}$$

where in the second expression the conditioning is on the observed covariates. Moreover, \(p(b_{it}| u,{\mathbf {w}}_{it})\) is defined according to (2) and \(f(b_{it},y_{it}| u, {\mathbf {w}}_{it},{\mathbf {x}}_{it})\) is the joint density of \(b_{it}\) and \(y_{it}\) based on assumption (1); the previous product is defined only for those occasions t for which the answer of subject i is observed. In particular, we need this density for \(b_{it}=1\) when it is equal to

$$\begin{aligned} \int _0^\infty \phi _2[(b_{it}^*,y_{it})',{\varvec{u}},\varvec{\Sigma }]db_{it}^*, \end{aligned}$$

where \( \phi _2[\cdot ]\) is the density function of the bivariate Normal distribution in (1).

The manifest distribution of the proposed bivariate mixture growth model is expressed as follows:

$$\begin{aligned}&p({\mathbf {b}}_{i,\,obs}, {\mathbf {y}}_{i,\,obs}\mid {\mathbf {W}}_{i,obs}, {\mathbf {X}}_{i,obs},{\mathbf {z}}_i) \nonumber \\&\quad = \sum _{u=1}^k \pi _{u}({\mathbf {z}}_i) \; p({\mathbf {b}}_{i,\,obs}, {\mathbf {y}}_{i,\,obs} \mid u, {\mathbf {W}}_{i,obs}, {\mathbf {X}}_{i,obs}). \end{aligned}$$
(5)

This expression is crucial for inference as we explain in the following section. Another quantity of interest is the posterior probability that a subject with observed response configuration \(({\mathbf {b}}_{i,\,obs}, {\mathbf {y}}_{i,\,obs})\) belongs to latent class u. Using standard rules, the posterior probabilities are equal to

$$\begin{aligned}&p(U_i = u \mid {\mathbf {b}}_{i,obs}, {\mathbf {y}}_{i,obs}, {\mathbf {W}}_{i,obs}, {\mathbf {X}}_{i,obs}, {\mathbf {z}}_i) \nonumber \\&\quad \qquad = \frac{\pi _u({\mathbf {z}}_i)\;p({\mathbf {b}}_{i,obs}, {\mathbf {y}}_{i,obs} \mid u, {\mathbf {W}}_{i,obs}, {\mathbf {X}}_{i,obs}) }{p({\mathbf {b}}_{i,\,obs}, {\mathbf {y}}_{i,\,obs}\mid {\mathbf {W}}_{i,obs}, {\mathbf {X}}_{i,obs})}, \quad u=1,\ldots ,k. \end{aligned}$$
(6)

These probabilities are used to allocate subjects to the different latent classes, as will be clarified in the sequel.

3 Model inference

In the following we first illustrate the model estimation process, based on the maximization of the log-likelihood function. Then, we describe how to compute standard errors, selecting the number of latent classes, and assigning sample units to the latent classes. Finally, we outline how to compute marginal effects.

3.1 Maximum likelihood estimation

Given a sample of n independent units, the log-likelihood of the proposed model is

$$\begin{aligned} \ell ({\varvec{\theta }}) = \sum _{i=1}^n \log p({\mathbf {b}}_{i,\,obs}, {\mathbf {y}}_{i,\,obs}\mid {\mathbf {W}}_{i,obs} , {\mathbf {X}}_{i,obs},{\mathbf {z}}_i), \end{aligned}$$

where \({\varvec{\theta }}\) is the vector of the free model parameters, that is, \({\varvec{\theta }}= ( {\varvec{\beta }}_u', {\varvec{\gamma }}_u', {\varvec{\delta }}_u', \sigma ^2, \rho )'\) and \(p({\mathbf {b}}_{i,\,obs}, {\mathbf {y}}_{i,\,obs}\mid {\mathbf {W}}_{i,obs} , {\mathbf {X}}_{i,obs},{\mathbf {z}}_i)\) is the manifest distribution defined in (5). Note that the number k of mixture components is not included in the vector of model parameters because it has to be a priori fixed, as clarified in Sect. 3.2. In order to maximize \(\ell ({\varvec{\theta }})\), we rely on the EM algorithm Dempster et al. (1977).

The maximization algorithm is based on the complete-data log-likelihood that we could compute if we knew the value of the latent variable \(U_i\) for every unit i in the sample. It is defined as follows:

$$\begin{aligned} \ell ^*( {\varvec{\theta }}) = \sum _{i=1}^n \sum _{u=1}^k a_{iu} \log \left[ \pi _{u}({\mathbf {z}}_i) \; p({\mathbf {b}}_{i,obs}, {\mathbf {y}}_{i,obs} \mid u, {\mathbf {W}}_{i,obs} , {\mathbf {X}}_{i,obs} ) \right] , \end{aligned}$$

where \(a_{iu}\) is an indicator variable equal to 1 if subject i belongs to cluster u and to 0 otherwise.

As usual, the EM algorithm alternates the following two steps until convergence:

  • E-step: it consists in computing the conditional expected value of the complete data log-likelihood given the observed data and the current value of the model parameters.

  • M-step: it consists in maximizing the expected value of the complete data log-likelihood resulting from the E-step with respect to \( {\varvec{\theta }}\), so as to update the parameters.

In practice, at the E-step we need to compute the posterior expected value of every indicator variable \(a_{iu}\), that is,

$$\begin{aligned} {\hat{a}}_{iu} = p(U_i = u \mid {\mathbf {b}}_{i,obs}, {\mathbf {y}}_{i,obs},{\mathbf {W}}_{i,obs} , {\mathbf {X}}_{i,obs}, {\mathbf {z}}_i), \quad u = 1,\ldots ,k,\qquad \end{aligned}$$
(7)

for \(i = 1, ..., n\) according to (6). This value is directly used to update the parameters in \( {\varvec{\theta }}\) at the M-step, by maximizing

$$\begin{aligned} \sum _{i=1}^n \sum _{u=1}^k {\hat{a}}_{iu} \log p({\mathbf {b}}_{i,obs}, {\mathbf {y}}_{i,obs} \mid u, {\mathbf {W}}_{i,obs} , {\mathbf {X}}_{i,obs} ), \end{aligned}$$

with respect to parameter vector \( {\varvec{\beta }}_u\), \( {\varvec{\gamma }}_u\), \(\sigma ^2\), and \(\rho \), and by maximizing

$$\begin{aligned} \sum _{i=1}^n \sum _{u=1}^k {\hat{a}}_{iu} \log \pi _{u}({\mathbf {z}}_i) \end{aligned}$$

with respect to the parameter vectors \({\varvec{\delta }}_u\). These optimizations are performed on the basis of suitable numerical algorithms.

The convergence of the EM algorithm is checked on the basis of the relative log-likelihood difference, that is,

$$\begin{aligned} \left[ \ell ({\varvec{\theta }}^{(s)}) -\ell ({\varvec{\theta }}^{(s-1)})\right] /\mid \ell ({\varvec{\theta }}^{(s-1)})\mid < \epsilon \end{aligned}$$
(8)

where \({\varvec{\theta }}^{(s)}\) is the parameter estimate obtained at the end of the s-th M-step and \(\epsilon \) is a suitable tolerance level (e.g., \(10^{-8}\)).

In order to speed up the estimation process, after a suitable number of EM steps we run a Broyden-Fletcher-Goldfarb-Shanno (BFGS) quasi-Newton method (see Givens and Hoeting 2013, and reference therein) to directly maximize the incomplete data log-likelihood, which relies on the score vector to update model parameters. The score vector is computed as the first derivative of the conditional expected value of the complete data log-likelihood given the observe data, which has been proved to correspond to the score vector for the observed data (or incomplete data) log-likelihood (Oakes 1999). The number of EM steps performed before starting to run these steps is again driven by the relative log-likelihood difference in (8) based on a different tolerance level \(\epsilon ^*\) that must be defined in advance. To explore the performance, in terms of computational efficiency, of the proposed approach with respect to the classical EM algorithm we set up a small simulation study, where we run, under different scenarios, the algorithm based on different tolerance levels \(\epsilon ^*\) for moving to the acceleration steps. Details are provided in “Appendix A”. We also evaluate the competing algorithms in our application, obtaining that the classical EM algorithm is between 2.5 and 6.5 times slower than the proposed accelerated version.

It is important to recall that the EM algorithm requires to be initialized by choosing suitable starting values for the parameters in \({\varvec{\theta }}\). In fact, a typical problem in estimating discrete latent variable models is the multimodality of the log-likelihood function. In order to prevent this problem, we rely on a multi-start strategy, based on both a deterministic and a random rule, the latter repeated a given number of times, so as to properly explore the parameter space. Then, for a given k, we take as final parameter estimate the one corresponding to the largest log-likelihood value found at convergence.

The deterministic initialization of the algorithm consists in computing the starting values of the parameters affecting both the probability of observing a response and the response variable itself on the basis of descriptive statistics (mean and quantiles) of the observed outcomes. The starting values for the mass probabilities \(\pi _{u}( {\mathbf {z}}_{i})\) are chosen as 1/k, for \(i=1,\ldots ,n\) and \(u=1,\ldots ,k\).

The random starting rule is instead based on random values generated from a standard normal distribution for the parameters \({\varvec{\beta }}_u\) and \( {\varvec{\gamma }}_u\) and from a uniform distribution for parameters \(\sigma ^2\) and \(\rho \). Moreover, we draw the initial values of the mass probabilities from a uniform distribution between 0 and 1 and then we normalize these random draws so that they sum to 1.

3.2 Standard errors, model selection, and clustering

After the model is estimated with a given number of classes, we obtain standard errors for the parameter estimates on the basis of the observed information matrix \({\varvec{J}}(\hat{{\varvec{\theta }}})\). In particular, the standard error for each parameter is obtained as the square root of the corresponding diagonal element of the inverse of this matrix, \({\varvec{J}}(\hat{{\varvec{\theta }}})^{-1}\). In our application, the computation of the observed information matrix is based on a numerical method (Bartolucci and Farcomeni 2009), where \({\varvec{J}}(\hat{ {\varvec{\theta }}})\) is obtained as minus the numerical derivative of the score vector at convergence. As discussed above about the EM acceleration, the score vector is obtained analytically as the first derivative of the conditional expected value of the complete data log-likelihood, which is based on the expected frequencies \({\hat{a}}_{iu}\) corresponding to the final parameter estimate \(\hat{ {\varvec{\theta }}}\) (Oakes 1999).

It is already clear that the number k of latent classes does not belong to the vector of free parameters \( {\varvec{\theta }}\). In fact, k has to be chosen before performing the estimation process: its value may be suggested by substantial reasons or, alternatively, its choice may be driven by information criteria common to the finite-mixture literature (McLachlan and Peel 2000), which rely on penalized measures of model fit. In particular, to select the number of latent classes the AIC (Akaike 1973) and the BIC (Schwarz 1978) are based on the indices

$$\begin{aligned} \mathrm {AIC}= & {} -2 {\hat{\ell }} +2 \; \# \mathrm {par},\\ \mathrm {BIC}= & {} -2 {\hat{\ell }} +\log (n)\; \#\mathrm {par}, \end{aligned}$$

where \({\hat{\ell }}\) denotes the maximum of the log-likelihood of the model of interest and \(\#\mathrm {par}\) denotes the number of free parameters.

In practice, a series of models is estimated for increasing values of k until the value of the index corresponding to the preferred information criterion does not start to increase; then, the previous value of k is adopted as the optimal one. Following the main stream of the literature (for a review see Bacci et al. 2014, and references therein), if the two criteria lead to selecting a different number of classes, we suggest to rely on the BIC, which tends to have good performance in several contexts and is more parsimonious with respect to the AIC.

A debated issue in the LC literature concerns the selection of k when covariates affect the class membership probabilities. According to a commonly accepted recommendation (Nylund-Gibson and Masyn 2016), k should be selected relying on a model without covariates, thus avoiding to overextract classes due to the noise present in a more complex model; once the value of k is selected, covariates are then included. Unfortunately, this procedure cannot be directly applied to the bivariate latent growth model here proposed, because its equations (2) and (3), for \(B_{it}\) and \(Y_{it}\), in addition to the equation for the class weights (4), are affected by covariates and, most of all, must differentiate for at least one regressor. This is requested by the exclusion restriction condition characterizing Heckman-type models, as clarified in Sect. 2.2. For this reason, in what follows we adopt a different strategy accounting for the relevance of the covariates (mainly, those related to the time) for our analysis. We first explore the time trajectories under basic alternative model specifications enclosing time-varying and time-constant covariates, that is, the standard Heckman model and the latent growth model with \(k = 1\) and with polynomials of different orders for age and year (see Sect. 4.2). Once the order of the polynomials for both age and year has been chosen, we select k.

It is worth remarking that the choices of r (order of polynomials for age and year) and k (number of latent classes) are not unrelated and, therefore, they should be simultaneously selected by a one-step strategy. In principle, the optimal number of r and k chosen on the basis of the proposed hierarchical strategy (based on selecting first r and then k given r) might differ from the one obtained with the simultaneous selection. However, the latter one is considerably slower and, at least in the specific application here discussed, does not provide noteworthy differences (see Sect. 4.3).

An additional relevant issue when dealing with the proposed model concerns the assignment of the units to the latent classes. As usual, the estimation algorithm directly provides the estimated posterior probabilities of \(U_i\), as defined in (7), which may be used for this assignment. In particular, a subject is assigned to one of the k latent classes according to the standard MAP rule (or modal assignment), see Goodman (2007), which consists in allocating subject i to latent class u when \({\hat{a}}_{iu} = {\hat{a}}_i^*\), where \({\hat{a}}_i^*\) is the maximum of \({\hat{a}}_{i1},\ldots , {\hat{a}}_{ik}\). Note that this phase is error prone; however the classification error resulting from the MAP assignment may be estimated using simple probability calculus (for details see Vermunt 2010). Moreover, several studies proved the MAP allocation to be superior in terms of classification error with respect to alternative methods, among which the method of the expected proportions (Goodman 2007), the method of bagging based on bootstrap (Dias and Vermunt 2008), and the one proposed by Bandeen-Roche et al. (1997) based on multiple pseudo-class draws that randomly assign individuals to latent classes for a repeated number of times according to the posterior probabilities (Bray et al. 2015).

3.3 Marginal effects

In order to favor the interpretation of the regression coefficients, we suggest to obtain the marginal effects of each covariate on the two response variables. In the case of the time-varying covariates collected in \({\mathbf {w}}_{it}\) and \({\mathbf {x}}_{it}\), the marginal effects for individual i and occasion t are computed as follows:

$$\begin{aligned} \frac{\partial E\left( B_{it}\mid U_i = u, {\mathbf {W}}_{it} = {\mathbf {w}}_{it}, {\mathbf {Z}}_i = {\mathbf {z}}_i \right) }{\partial w_{itj}}= & {} \sum _{u = 1}^k {\hat{\pi }}_u({\mathbf {z}}_i) \frac{\partial E\left( B_{it} \mid U_i = u, {\mathbf {W}}_{it} = {\mathbf {w}}_{it}\right) }{\partial w_{itj}} \nonumber \\= & {} \sum _{u = 1}^k {\hat{\pi }}_u({\mathbf {z}}_i) \phi ({\mathbf {w}}_{it} ' \hat{{\varvec{\beta }}}_u){\hat{\beta }}_{uj}, \nonumber \\ \frac{\partial E\left( Y_{it}\mid U_i = u, {\mathbf {X}}_{it} = {\mathbf {x}}_{it}, {\mathbf {Z}}_i = {\mathbf {z}}_i \right) }{\partial x_{itj}}= & {} \sum _{u = 1}^k {\hat{\pi }}_u({\mathbf {z}}_i) \frac{\partial E\left( Y_{it} \mid U_i = u, {\mathbf {X}}_{it} = {\mathbf {x}}_{it}\right) }{\partial x_{itj}} \nonumber \\= & {} \sum _{u = 1}^k {\hat{\pi }}_u({\mathbf {z}}_i) \; {\hat{\gamma }}_{uj}, \end{aligned}$$
(9)

where \(w_{itj}\) and \(x_{itj}\) denote specific elements of \({\mathbf {w}}_{it}\) and \({\mathbf {x}}_{it}\). With reference to the time-constant covariates \({\mathbf {z}}_i\), the marginal effects are obtained as:

$$\begin{aligned} \frac{\partial E\left( B_{it}\mid U_i = u, {\mathbf {W}}_{it} = {\mathbf {w}}_{it}, {\mathbf {Z}}_i = {\mathbf {z}}_i \right) }{\partial z_{ij}}= & {} \sum _{u = 1}^k \frac{\partial \pi _u({\mathbf {z}}_i)}{\partial z_{ij}} E\left( B_{it}\mid U_i= u, {\mathbf {W}}_{it} = {\mathbf {w}}_{it}\right) \nonumber \\= & {} \sum _{u = 1}^k \left\{ {\hat{\pi }}_u({\mathbf {z}}_i) \left[ {\hat{\delta }}_{uj} - \sum _{v=1}^k {\hat{\pi }}_v({\mathbf {z}}_i) {\hat{\delta }}_{vj} \right] \Phi ({\mathbf {w}}_{it}' \hat{ {\varvec{\beta }}}_u)\right\} , \nonumber \\ \frac{\partial E\left( Y_{it}\mid U_i = u, {\mathbf {X}}_{it} = {\mathbf {x}}_{it}, {\mathbf {Z}}_i = {\mathbf {z}}_i \right) }{\partial z_{ij}}= & {} \sum _{u = 1}^k \frac{\partial \pi _u({\mathbf {z}}_i)}{\partial z_{ij}} E\left( Y_{it}\mid U_i = u, {\mathbf {X}}_{it} = {\mathbf {x}}_{it}\right) \nonumber \\= & {} \sum _{u = 1}^k \left\{ {\hat{\pi }}_u({\mathbf {z}}_i) \left[ {\hat{\delta }}_{uj} - \sum _{v=1}^k {\hat{\pi }}_v({\mathbf {z}}_i) {\hat{\delta }}_{vj} \right] {\mathbf {x}}_{it}'\hat{ {\varvec{\gamma }}}_{u} \right\} . \end{aligned}$$
(10)

Accordingly, the averaged marginal effect may be computed as the overall mean of the individual marginal effects. Finally, we obtain standard errors for these marginal effects through a (non-parametric) bootstrap approach, resampling from original data a certain number of times (Efron and Tibshirani 1993).

4 Application

In this section we first illustrate the empirical background of the proposed application and describe the data. Then, we illustrate the specification of the bivariate latent growth model of household portfolio choices and we discuss the results of the data analysis. We pay specific attention to the interpretation of the estimated class-specific age and time trajectories of market participation and risky asset share, and also to the discussion of the effects of time-varying and time-constant covariates.

In “Appendix B”, we provide an example of the R code to specify the bivariate latent growth model and display the model parameter estimates.

4.1 Data description

The standard reference for the economic theory related to households’ participation in the risky asset market is the Merton portfolio selection model (Merton 1969). One of the main implications of this model is that all investors, independently of their wealth and attitudes toward risk, should participate in all risky asset markets and should hold the same fully diversified portfolio of risky securities (Guiso and Sodini 2013). However, empirical evidence on household portfolios seems to depart from these predictions. On one side, a substantial fraction of households do not participate in risky asset markets, mainly due to fixed entry or participation costs (Haliassos 2008), limited cognitive skills (Christelis et al. 2010), low level of financial literacy and education (van Rooij et al. 2011), poor health status (Edwards 2008; Atella et al. 2012), and risk aversion (Guiso and Paiella 2008). On the other side, evidence about the life-cycle pattern of the conditional risky asset share is quite controversial, having age profiles of the invested amounts been found both relatively or extremely flat (Guiso et al. 2002; Ameriks and Zeldes 2004), monotonically increasing (Alessie et al. 2004), and also monotonically decreasing (Fagereng et al. 2017).

The empirical analysis is based on micro-data from nine waves of the Bank of Italy’s Survey of Household Income and Wealth (SHIW) over the period 1998–2014. This survey, which started in the 1960s and is carried out on a biennial basis since 1998, provides detailed information on income, wealth, consumption expenditures, and portfolio choices, as well as on household composition, demographic characteristics, and labor force participation, for a representative sample of about 8000 Italian households in each wave. In 1989 the Bank of Italy introduced a longitudinal component into the survey and, since then, an increasingly fraction of the respondents have been interviewed for two or more consecutive surveys; currently, about one half of the sample is included in the panel (see Brandolini 1999; Bank of Italy 2015, for more details on the panel structure of the SHIW).

For the aims of our analysis, we exploit the longitudinal dimension of the SHIW and define our data sample on those households that were interviewed for at least four consecutive waves. Coherently with previous empirical studies (Alessie et al. 2004; Ameriks and Zeldes 2004), this choice allows us to track household portfolio choices over a period of at least eight years, which is adequate to properly model investment dynamics while keeping the number of households sufficiently large. Moreover, we focus on households whose head is aged between 25 and 85 and, as in Guiso and Jappelli (2002), we drop observations with inconsistent responses for age, gender, and education. After this data cleaning procedure, we dispose of an unbalanced sample of 18,106 observations on 3157 households, 373 of which were interviewed in all the nine waves between 1998 and 2014.

Exploiting the detailed breakdown of household financial portfolios provided by the SHIW, we distinguish between risky and safe financial assets. In particular, following Guiso and Jappelli (2002), we define risky financial assets as the sum of directly held stocks, long-term government bonds, other bonds, mutual funds, managed investment accounts, foreign assets, and defined-contribution pension plans. The remaining assets (transaction accounts and certificates of deposit, treasury bills, and the cash value of life insurance) are classified as risk-free.

Table 1 Percentage of households owning risky financial assets and conditional shares invested, by year

Table 1 reports the percentage of households owning risky financial assets and the shares invested in risky assets out of total financial wealth (conditionally on owning risky assets), for each year. The data in Table 1 suggest that the total participation is fairly constant over time and about 30% of the households invest in risky financial assets each year, decreasing to 28.8% and 24.8% in 2006 and 2008, respectively. We also notice that the risky asset share is constant over time and amounts to about 45% of household total financial wealth in each year (with the exception of 2008, when it reduces to 37%).

Fig. 2
figure 2

Risky asset market participation (left panel) and conditional shares invested (right panel), by age

Figure 2 shows the life-cycle profiles of risky financial market participation (left panel) and share invested (right panel) for selected cohorts defined on the basis of the household head year of birth. Cohorts are defined on 5-year intervals, with the first cohort including households with head born between 1968 and 1972 (and was aged between 26 and 30 in 1998, the first survey year), and are followed (with the exception of the last two cohorts) over a 16-year period. The graphical analysis of the left panel of Fig. 2 suggests that cohort effects are likely to play an important role, as participation rates differ across cohorts observed at the same age, with successive cohorts having higher participation rates in the first part of the life-cycle and lower rates in later stages. Moreover, looking at the right panel of Fig. 2, we notice again cohort-specific patterns with an overall pattern that tend to increase with age (i.e., older households invest a relatively larger share of their financial wealth in risky assets).

The evidence based on the descriptive statistics commented above suggests the existence of significant life-cycle patterns for both risky asset market participation and conditional investment shares. However, as discussed in Ameriks and Zeldes (2004), it does not allow to properly disentangle time, age, and cohort effects. In the next sections, we illustrate the results obtained with the bivariate latent class growth trajectory model illustrated in Sects. 2 and 3.

4.2 Model specification

The model is specified according to the description provided in Sect. 2.1, being \(B_{it}^*\) the propensity of household i to participate to the risky financial market at occasion t and \(Y_{it}\) the percentage of investments in risky financial assets out of total financial wealth.

In order to assess the life-cycle and time patterns of the response variables in each latent class, a polynomial for the household head’s age and another polynomial for the year of interview are introduced in both vectors \({\mathbf {w}}_{it}\) and \({\mathbf {x}}_{it}\).

Furthermore, both participation and outcome equations control for the following time-varying covariates: household disposable income (net of financial income) (disposable income, in thousands of euros), whether household has any debt (dummy debts), number of household members (household size), presence of children under 14 years (dummy children), marital status (dummy married), and employment status of the household head (dummies employee and retired). As common practice in estimating selection models, in order to improve model identifiability we impose an exclusion restriction and assume that asset market participation probability is also affected by the stock of real assets (real assets, in thousands of euros) owned by the household, by the regional unemployment rate (unemployment rate), and by the average number of bank branches (per 100,000 inhabitants) at regional level (bank branch density).

As concerns time-constant covariates affecting latent class membership, we include in vectors \({\mathbf {z}}_i\) the household head’s gender (dummy female) and the values observed at the first available time occasion for the area of residence (dummies north and centre), town size (dummy small town), and household head’s educational level (dummies lower secondary education, upper secondary education, and tertiary education).

It is worth noting that, as age, year of interview, and year of birth are linearly related (i.e., year of interview = age + year of birth), some restrictions are necessary to properly model life-cycle patterns for both risky asset market participation and share invested (for a discussion see Ameriks and Zeldes 2004). To avoid this type of multicollinearity and to identify age, year of interview, and cohort effects, several strategies were proposed. Here, following Giuliano and Spilimbergo (2013) and Fagereng et al. (2017), we control for unrestricted time effects and proxy cohort effects by means of an exogenous variable capturing stock market returns during the household head’s youth, assuming that early experiences have enduring effects on risk preferences and affect stock market participation decisions. Specifically, we use a composite indicator of stock market returns (youth stock return in the following), defined as a weighted average of the Italian Stock Exchange (80%) and the MSCI World Index (20%), experienced when the head was aged between 18 and 25. As this composite indicator is time-constant, we include it in vector \({\mathbf {z}}_i\). However, it is worth noting that its inclusion in vectors \({\mathbf {w}}_{it}\) and \({\mathbf {x}}_{it}\) does not modify in a sensible way the results of the estimation process (results not shown here).

4.3 Model selection and latent class characterization

As preliminary and explorative analysis, we consider estimates from an Heckman (1979) model as well as a bivariate latent growth model with \(k=1\), both of them for increasing values of the order r of polynomials for age and year. For the sake of completeness, a less parametric version of the bivariate latent growth model is estimated where the polynomial for the survey year is replaced by time dummies. Table 2 shows a summary of the main results for each estimated model: maximum log-likelihood, value of BIC, estimated value of correlation coefficient between probability of investing and share invested, and the variance parameter, together with the corresponding standard errors.

Table 2 Explorative analysis: comparison between basic models

As expected, the results based on the Heckman (1979) model are the same as those of our proposed model with \(k=1\). Moreover, we first observe that all models agree on the presence of a statistically significant negative correlation between the probability of investing in risky assets and the share invested. Second, the BIC values lead to the selection of order \(r=4\) for the polynomial of age and, at the same time, they outline that the better fit of models with dummies for survey year is not sufficient to offset the loss of parsimony. Anyway, we verified that the choice between polynomial and dummies for variable year does not significantly affect the parameter estimates.

In light of these results, we base our analysis on a latent growth model with correlated components, specified as in Eqs. (2)–(4), and with two polynomials of order \(r=4\) both for the household head’s age and the year of interview.

As far as the choice of the number k of mixture components, the selection procedure is based on the BIC, as illustrated in Sect. 3.2. In particular, the sequence of latent growth models including the set of covariates mentioned in Sect. 4.2 and polynomials of order four for age and year, provides the values of the BIC index shown in Table 3. The BIC values for the special case of \(\rho = 0\) are also displayed in the last column of the table.

Table 3 Selection of the number of mixture components

Accordingly, we adopt a model with \(k=3\), corresponding to the minimum value of BIC. It is also worth noting that the estimated correlation coefficient \({\hat{\rho }}\) is negative and decreasing in absolute value while its standard error increases, for k ranging from 1 to 4. In particular, for \(k=3\) (and \(k=4\)) the correlation coefficient is not statistically significant. To provide evidence of the robustness of results discussed in the following, the bivariate latent growth model with \(k=3\) mixture components and with \(\rho = 0\) was also estimated, and no relevant difference resulted in the main conclusions.

Moreover, as an additional robustness check, we also selected r and k by adopting a one-step strategy, which led to choose \(k = 4\) and \(r = 3\). Despite the differences in the values of k and r, this model (results here omitted for the sake of space) presents several similarities with the one presented in the paper (having \(k=3\) and \(r=4\)): in particular, estimates of \(\rho \) and \(\sigma ^2\) are very close to each other, and two latent classes have similar profiles in both models.

From the results obtained under the selected model, the class collecting the main part of households is Class 2 with an average mass probability \(\hat{{\bar{\pi }}}_2\) equal to 0.498, followed by Class 3 with average weight \(\hat{{\bar{\pi }}}_3\) equal to 0.333, whereas the smallest class is the first with average weight \(\hat{{\bar{\pi }}}_1\) equal to 0.169, where we define \(\hat{{\bar{\pi }}}_u = \sum _i \pi _u({\mathbf {z}}_i)/n\), \(u=1,\ldots ,k\).

To characterize the three latent classes, we allocate each household to these classes on the basis of the posterior probabilities, estimated as in (7), which account for both the observed pattern of response variables \(({\mathbf {b}}_{i,obs}, {\mathbf {y}}_{i,obs})\) and the prior probabilities \(\pi _u({\mathbf {z}}_i)\). As reported in Table 4, the 16.4% of households is allocated in Class 1, the 54.1% in Class 2, and the remaining 29.5% in Class 3.

Table 4 also shows the average values of time-varying and time-constant covariates for each latent class. Moving from Class 2 to Class 1 through Class 3, we observe increasing average values of household disposable income as well as of real assets: Class 1 clearly emerges as the wealthiest group, both in terms of annual income flows and of real assets possessed. From Class 2 to Class 1, we also note an increasing proportion of households living in the North, and with head being married and having attained a secondary or a tertiary education; conversely, the proportions of female heads and of those with a lower secondary education show a strong decreasing tendency. Furthermore, households allocated to Class 1 mainly live in regions characterized by a lower average unemployment rate and a higher value of bank branch density, as opposite to Class 2 that presents the highest value of the average unemployment rate and the smallest value of the bank branch density. Class 3 shows characteristics that are intermediate with respect to the first two classes.

Table 4 Average characteristics of households in each latent class

4.4 Life-cycle and time patterns of households’ investment behavior

Table 5 shows the estimates of coefficients \({\varvec{\beta }}_u\) and \({\varvec{\gamma }}_u\) (and the corresponding standard errors) of the fourth-order age and time polynomials for the participation and outcome equations, respectively. The corresponding class-specific age and time profiles (together with 95% confidence bands) are plotted in Fig. 3. These trajectories are estimated considering an individual with mean or modal characteristics (in the case of quantitative and qualitative covariates, respectively).

Table 5 Estimated coefficients of age and year polynomials (\({\varvec{\beta }}_u\) and \({\varvec{\gamma }}_u\), \(u=1,2,3\))
Fig. 3
figure 3

Estimated age (a) and year (b) latent trajectories

Focusing on the life-cycle pattern of the probability of participating in risky financial markets (Fig. 3, left graph of panel (a)), we notice a significant heterogeneity across latent classes. Households in Class 1 are characterized by the highest asset market participation rates (around 70%), whereas households in Class 2 have a very low propensity to invest in risky assets (lower than 3%); in both cases the estimated coefficients of the trajectories are substantially constant over the life-cycle. This is a somewhat expected result and is consistent with the existence of fixed entry costs. These two latent classes are, in fact, characterized by the highest and lowest economic conditions, in terms of average disposable income and real asset wealth, respectively (see Table 4 and related comments). As discussed in Guiso et al. (2003a), in the presence of fixed participation costs only relatively wealthier investors enter risky financial markets, while poor households do not hold risky assets, because the utility loss from abstaining from participation is too small to offset entry costs. The figure also documents a distinct hump-shaped age pattern of participation probability for Class 3: asset market participation increases over the first part of the life-cycle, peaking at the age of approximately 42, then it gradually decreases until the age of 65, whereas the drop is much steeper after retirement. At its peak, the participation rate of Class 3 is around 37%, while at early and later stages of the life-cycle only a small fraction of households invest in risky assets (around 22% and 7%, respectively). This estimated age profile is in line with the findings of Guiso and Jappelli (2002) for Italy and is consistent with the hump-shaped life-cycle patterns estimated in several countries, as found by Guiso et al. (2002) and Guiso et al. (2003b).

The average age profile for the entire sample is similar to that of Class 3 and coherent with the theoretical predictions of the life-cycle model and with the empirical findings of the prevailing literature, confirming the still limited asset market participation in Italy.

Regarding the age patterns of the conditional risky assets shares (Fig. 3, right graph of panel (a)), Class 1 and Class 3 are characterized by relatively flat profiles. In particular, households in Class 1 show the highest conditional portfolio shares over most of the life-cycle, reaching the 70% of total financial wealth in later stages. This latent class, composed of households with the highest levels of economic resources and educational attainments, is not only characterized by the highest participation rates, but also by investing more in risky financial assets. This evidence is consistent with the results of previous empirical studies that pointed out the tendency of richer households to specialize in risky financial assets; see Guiso et al. (2002) and Guiso et al. (2003b). Class 2 is instead characterized by a sinusoidal trend along the life-cycle, with the conditional risky share increasing up to the age of 35, decreasing up to the age of 55, and then slightly increasing again in the last part of the life-cycle. Households in this latent class invest a rather high share in risky asset, especially in the first part of the life-cycle, coherently with theoretical models implying that young households with limited resources should be willing to invest a larger proportion of their wealth in risky financial assets to exploit the higher expected returns of these investments (Haliassos 2003).

The average life-cycle pattern for the entire sample is relatively flat: households maintain the share invested in risky assets fairly constant at around the 55% of their financial wealth and do not engage in substantial rebalancing of their portfolios as they age. This result is in line with the cross-country evidence obtained by Guiso et al. (2003a) and with the findings of the main empirical literature (Ameriks and Zeldes 2004; Alessie et al. 2004).

The estimated time profiles (Fig. 3, panel (b)) confirm the heterogeneity of portfolio choices across latent classes. Participation probability for households in Classes 1 and 2 remains stable over the 1998–2014 period; conversely, a sinusoidal trend is observed for Class 3, with asset market participation decreasing from 2000 to 2008, and increasing in 2010 and 2012. Again, the average profile for the whole sample is similar, but flatter than that of Class 3. Focusing on the time patterns of the conditional share, we find a significant decreasing trend for Class 3, whereas Class 1 is characterized by the highest investment shares, which remain substantially constant over the whole period. A significant sinusoidal trend is estimated for Class 2, with conditional shares decreasing from 1998 to 2002, increasing up to 2012, and then decreasing again in 2014. The average profile is completely flat, with a conditional share constant over the whole period at around 53%. Household portfolio choices in Italy are thus rather stable over time. Business cycle and changing market conditions mainly affect participation probability, which slightly reduces over time. Furthermore, the global financial crisis seems to have had a limited impact on household decision to enter/exit the risky financial market and on portfolio rebalancing. Our results are consistent with the findings of Brunnermeier and Nagel (2008), Calvet et al. (2009), and Bilias et al. (2010), who show that households do not frequently adjust their portfolios and that portfolio rebalancing is not strongly affected by market fluctuations.

4.5 Effect of time-varying and time-constant covariates

The estimated regression coefficients (and the corresponding standard errors) of the remaining time-varying covariates are reported in Table 6. Since the effects of the covariates are allowed to be class-specific, in most cases the statistical significance and the direction of the effect (positive or negative) may change from one class to another. The first column of the table shows the estimated coefficients for the participation equation. Disposable income and real asset wealth exert positive and statistically significant effects on market participation in all the three classes, confirming the crucial role of household economic conditions on the decision of whether to enter risky asset markets. Household size exerts heterogenous effects on market participation: it significantly increases the probability of investing in risky assets for households in Class 3, in line with the findings of Guiso and Jappelli (2002) and Alessie et al. (2004), whereas it reduces participation probability for Class 2. It is also worth remarking that all the three considered identification variables exert significant effects on the participation probability of all classes, supporting the validity of our identification strategy.

Table 6 Estimated coefficients of time-varying covariates (\({\beta }_u\) and \(\gamma _u\), \(u=1,2,3\))

Turning to the conditional investment share (second column of Table 6), we again point out significant heterogeneity in the effects of time-varying covariates. In particular, estimated coefficients are statistically significant mainly for households in Class 2: the conditional risky share for this class is significantly lower for larger households with children and for those with lower disposable income and whose head is an employee or is retired.

Average marginal effects, computed as in (9) and reported in Table 7, may help to assess the overall impact of time-varying covariates. As expected, positive and statistically significant marginal effects on market participation probability are found for disposable income and real asset wealth. Similarly, households living in regions with a high bank branch density and those with married head are more likely to invest in risky assets. The marginal effects for all the remaining covariates are not statistically different from zero, as the opposing effects across latent classes tend to balance each other out.

Table 7 Marginal effects of time-varying covariates on the probability of participating and on the share invested

Analyzing the marginal effects on the conditional investment share, we notice that only the presence of children under 14 year and the occupational status of the household head significantly affect the conditional share invested. Conversely, household disposable income, despite having a substantial influence on market participation, does not exert any significant impact on portfolio allocation.

The estimates of coefficients \({\varvec{\delta }}_u\) (\(u = 2, 3\)) of time-constant covariates in the multinomial logit submodel of latent class membership are reported in Table 8, together with the related standard errors. Households living in the Centre and in the North of Italy and the head of which is a male, with a lower or upper secondary and, to a greater extent, a tertiary education, have a lower probability of belonging to Classes 2 and 3 than to Class 1.

Table 8 Estimated coefficients of time-constant covariates (\({\varvec{\delta }_u}\), \(u=2,3\))

Average marginal effects, computed as in (10) and reported in Table 9, allow us to assess the indirect impact of time-constant covariates on both asset market participation and conditional share invested. Female-headed households have a 5.6% lower participation probability, while households living in the Centre and in the North of Italy are 10.7% and 16.7% more likely to invest in risky assets, respectively. Furthermore, the probability of participating to risky asset markets for households whose head has a lower secondary, an upper secondary and a tertiary education is 10.2%, 20.2%, and 25.0% higher than those with no or primary education, respectively. This evidence supports the hypothesis of information-related barriers to asset market participation. Coherently with the findings of most empirical studies (see Guiso et al. 2003b), better-educated households are more likely to invest in risky assets because they are better informed about the existence and properties of different assets, and they are thus more able to take advantage of investment opportunities (Guiso et al. 2003a).

Table 9 Marginal effects of time-constant covariates on the probability of participating and on the share invested

The marginal effects on the share invested are rather small and statistically not significant. However, the conditional risky share is significantly higher for households whose head has a tertiary education, confirming the key role played by educational attainments on household risky financial investment decisions.

Finally, as in Fagereng et al. (2017), cohort effects captured by stock market returns experienced in youth have a positive effect on participation probability and a negative effect on the share invested, even if both effects are rather small.

5 Conclusions

In this paper, we propose a bivariate latent growth model to explain longitudinal data when the observation of a response variable of interest is conditioned on a selection mechanism. In particular, we introduce a selection model component with two variables: a binary one that drives the selection phase, and a continuous one, which represents the outcome of main interest. We also rely on a discrete latent variable, which defines unobservable clusters so as to account for different behaviors in the population, defined in terms of latent trajectories.

For estimating the proposed model, we develop an EM algorithm that also relies on an acceleration step based on a suitable numerical algorithm. The computation of standard errors for model parameters, the choice of the number of latent classes (unobservable clusters), and the clustering of the sample units based on the posterior probabilities of the latent variable are also dealt with.

The proposed approach is motivated by an application on household portfolio choices in Italy over the 1998–2014 period, in terms of both asset market participation and the conditional share invested in risky assets.

Differently from the prevalent literature, which ignores the heterogeneity in household investment choices, we are able to provide an explanation to the empirical inconsistencies observed in previous studies, by clustering households in a finite number of latent classes characterized by heterogeneous investment behaviors over the life-cycle and over time. Specifically, we identify a latent class of households (which represents about 30% of the sample) whose behavior in terms of risky asset market participation follows a hump-shaped trend along the life-cycle. This is consistent with the hump shape in the labor income process and with the existence of significant fixed participation costs in earlier and later stages of the life-cycle. At the same time, we also find that more than one half of the households in the sample do not participate to the risky asset market, confirming a well-established stylized fact in the household portfolio literature. Conversely, the remaining 16% of the households are characterized by a high propensity to invest along all their life-cycle. As far as the share invested in risky financial assets is concerned, we find that the conditional portfolio share for the entire sample remains fairly constant over the life-cycle. In particular, households with an hump-shaped age profile of market participation show a substantially flat trend in the share invested, while those with a high propensity to invest in risky assets are characterized by a slightly increasing trend over the life-cycle.

Our empirical findings suggest that household portfolio choices over the life-cycle mainly concern the decision to enter and exit the market for risky assets, whereas the rebalancing portfolio composition has limited relevance. Moreover, heterogeneity in asset market participation patterns is deeply related to the differences in economic conditions, exposure to background risk, and attitudes towards risk that characterize households belonging to the different latent classes and observed at different stages of their life-cycle.