Description Details References Examples
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.
It is a function with the binary regression models to facilitate de use of LaplacesDemon function, and to perform Bayesian analysis.
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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.