View source: R/plus_pmp_from_pmp.R
| plus_pmp_from_pmp | R Documentation |
Computes posterior probabilities of a positive coefficient sign, P(+), for the intercept and each regressor by averaging model-specific probabilities across the model space, weighted by posterior model probabilities.
plus_pmp_from_pmp(pmp_uniform, pmp_random, betas, VAR, DF, Reg_ID)
pmp_uniform |
Numeric vector of length |
pmp_random |
Numeric vector of length |
betas |
Numeric matrix of dimension |
VAR |
Numeric matrix of dimension |
DF |
Numeric vector of length |
Reg_ID |
Numeric or integer matrix of dimension |
For a given model i and coefficient j, the contribution is
p(M_i \mid y) \cdot F_t\!\left(
\frac{\beta_{ij}}{\sqrt{\mathrm{VAR}_{ij}}}; \mathrm{DF}_i
\right),
where F_t(\cdot;\mathrm{DF}_i) is the CDF of the Student-t
distribution with \mathrm{DF}_i degrees of freedom.
The intercept is included in all models, while each regressor contributes
only in those models in which it is included, as indicated by the model
inclusion matrix Reg_ID.
The posterior probability of a positive sign for coefficient j is
computed as
P(\beta_j > 0 \mid y)
=
\sum_{i \in \mathcal{M}_j}
p(M_i \mid y)\,
F_t\!\left(
\frac{\beta_{ij}}{\sqrt{\mathrm{VAR}_{ij}}}; \mathrm{DF}_i
\right),
where \mathcal{M}_j denotes the set of models that include regressor
j. For the intercept, \mathcal{M}_j contains all models.
This definition follows the sign-probability interpretation in Doppelhofer and Weeks (2009).
A list with two elements:
A (K+1) x 1 numeric matrix containing
posterior probabilities of a positive coefficient sign under the
uniform model prior. The first row corresponds to the intercept.
A (K+1) x 1 numeric matrix containing
posterior probabilities of a positive coefficient sign under the
random model prior. The first row corresponds to the intercept.
Doppelhofer, G. and Weeks, M. (2009). Jointness of growth determinants. Journal of Applied Econometrics, 24(2), 209–244.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.