Description Usage Arguments Details Value References See Also Examples

This function calculates the inefficiency factor from the MCMC draws
of *(β, σ)* for ordinal quantile model with 3 outcomes. The
inefficiency factor is calculated using the batch-means method.

1 | ```
infactor_or2(x, beta, sigma, autocorrelationCutoff)
``` |

`x` |
covariate matrix of dimension |

`beta` |
Gibbs draw of coefficients of dimension |

`sigma` |
Gibbs draw of scale factor. |

`autocorrelationCutoff` |
cut-off to identify the number of lags. |

Calculates the inefficiency factor of *(β, σ)* using the batch-means
method.

Returns a list with components

`inefficiencyBeta`

: vector with inefficiency factor for each*β*.`inefficiencySigma`

: vector with inefficiency factor for each*σ*.

Greenberg, E. (2012). “Introduction to Bayesian Econometrics.” Cambridge University Press, Cambridge. DOI: 10.1017/CBO9780511808920

pracma, acf

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ```
set.seed(101)
data("data25j3")
x <- data25j3$x
y <- data25j3$y
k <- dim(x)[2]
output <- quantreg_or2(y = y, x = x, B0 = 10*diag(k),
mcmc = 50, p = 0.25, display = FALSE)
beta <- output$beta
sigma <- output$sigma
inefficiency <- infactor_or2(x, beta, sigma, 0.5)
# Summary of Inefficiency Factor:
# Inefficiency
# beta_0 2.0011
# beta_1 1.6946
# beta_2 1.4633
# sigma 2.6590
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.