b.laplace: Binary models for Bayesian analysis.

Description Details References Examples

Description

It is not to be directly used, but only with LaplacesDemon function. Binary models to be used with LaplacesDemon function to generate a sample from the posterior distribution of the model's parameters.

Details

It is a function with the binary regression models to facilitate de use of LaplacesDemon function, and to perform Bayesian analysis.

References

Statisticat, LLC. (2013). LaplacesDemon: Complete Environment for Bayesian Inference. CRAN. R package version 13.03.04. http://cran.r-project.org/web/packages/LaplacesDemon/index.html

Examples

1
2
3
4
5
6
  set.seed(666)
  x <- rnorm(0,1)
  y <- rbern(length(x),pnorm(0.5+2*x))
  data <- dataLD(y ~ x, "cloglog")
  fit <- LaplacesDemon(ModelCloglog(), data, GIV(ModelCloglog(), data),
                       Iterations=1000,Thinning=2)

dnzmarcio/binreg documentation built on May 15, 2019, 9:41 a.m.