powered by
This function implements a direct computation of the logarithm of the likelihood of a standard probit model $$P(y=1|X,\beta)= \Phi(\beta^{T}X).$$
probitll(beta, y, X)
returns the logarithm of the probit likelihood for the data y, covariate matrix X and parameter vector beta
y
X
beta
coefficient of the probit model
vector of binary response variables
covariate matrix
logitll
data(bank) y=bank[,5] X=as.matrix(bank[,-5]) probitll(runif(4),y,X)
Run the code above in your browser using DataLab