Grouped data are often modeled by the linear hierarchical model and its variants. In this project, we propose an alternative copula-based model when the number of explanatory variables per individual is 2 and we give an example of fitting to data.
This project consists of two folders:
-The #Summary_paper folder provides information on the paper as a whole, and
-The #Summary_apply folder provides information on section 5, applying the model to data.
We consider a model with 3 clusters as examples numbered 1, 2 and 3 having 3, 5, and 4 individuals respectively. The graph is shown in figure
The aim is to propose a model for this data, taking into account the cluster effect.
Suppose we have a cluster with
with
- The copulas
$C_n^1$ and$C_n^3$ are exchangeable copulas. - The copula
$C^2$ is any bivariate copula.
To fit an exchangeable 2-copula model, we need to find 5 elements for the two (2) marginal laws
Nous ajustons ce modèle sur des données ouvertes et traités par les modèles classiques pour comparer les résultats de la prédictions. Les données sont disponibles en tapant le mini code ci-dessous.
library(lmeresampler) ; data(jsp728)
- Model ML1: Linear mixed model with random intercept.
- Model ML2: Mixed linear model with random intercept and slope.
- CM model: Regression model with our proposed model.
- Model CR: Regression model with standard copula.
The proposed "2-exchangeable copula model" improves prediction compared with existing competitors.