Learn R Programming

bayess (version 1.6)

probitnoinflpost: Log of the posterior density for the probit model under a non-informative model

Description

This function computes the logarithm of the posterior density associated with a probit model and the non-informative prior used in Chapter 4.

Usage

probitnoinflpost(beta, y, X)

Value

returns the logarithm of the posterior density associated with a logit model for the data y, covariate matrix X and parameter beta

Arguments

beta

parameter of the probit model

y

binary response variable

X

covariate matrix

See Also

logitnoinflpost

Examples

Run this code
data(bank)
y=bank[,5]
X=as.matrix(bank[,-5])
probitnoinflpost(runif(4),y,X)

Run the code above in your browser using DataLab