View source: R/logitnoinflpost.R
logitnoinflpost | R Documentation |
This function computes the logarithm of the posterior density associated with a logit model and the noninformative prior used in Chapter 4.
logitnoinflpost(beta, y, X)
beta |
parameter of the logit model |
y |
binary response variable |
X |
covariate matrix |
returns the logarithm of the logit likelihood for the data y
,
covariate matrix X
and parameter beta
probitnoinflpost
data(bank)
y=bank[,5]
X=as.matrix(bank[,-5])
logitnoinflpost(runif(4),y,X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.