Description Usage Arguments Details Value Author(s) Source References Examples
Compute the highest posterior density for the L-Logistic Bayesian Regression intervals of betas and deltas.
1 | llHPD(fitll, prob = 0.95, chain = 1)
|
fitll |
Object of class matrix with the llbayesireg function result. |
prob |
A number of quantiles of interest. The default is 0.95. |
chain |
Chain chosen for construction. The default is 1. |
This function compute the highest posterior density intervals for a Bayesian posterior distribution.
Object of class matrix with:
betas |
The highest posterior density intervals of betas. |
deltas |
The highest posterior density intervals of deltas. |
Sara Alexandre Fons<c3><aa>ca saralexandre@alu.ufc.br, Rosineide Fernando da Paz rfpaz2@gmail.com, Jorge Lu<c3><ad>s Baz<c3><a1>n
The L-Losgistic distribution was introduced by Tadikamalla and Johnson (1982), which refer to this distribution as Logit-Logistic distribution. Here, we have a new parameterization of the Logit-Logistic with the median as a parameter.
Paz, R.F., Balakrishnan, N and Baz<c3><a1>n, J.L. (2018). L-Logistic Distribution: Properties, Inference and an Application to Study Poverty and Inequality in Brazil.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | # Modelation the coeficient with generated data
library(llbayesireg)
library(llogistic)
# Number of elements to be generated
n=50
# Generated response
bin=2005
set.seed(bin)
y=rllogistic(n,0.5, 2)
fitll = llbayesireg(y, niter=100, jump=10)
llHPD(fitll)
# Modelation the coeficient with real data
library(llbayesireg)
data("Votes","MHDI")
y = Votes[,4]
X = MHDI
fitll = llbayesireg(y,X)
llHPD(fitll)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.