logit is the logistic likelihood function given data.

logit(start, data, Log = TRUE)

Arguments

start

vector of starting values

data

dataframe. The first column should be the dependent variable.

Log

a logical input (defaults to True) to take the log of the likelihood.

Value

like returns the likelihood function value.

Examples

y = indicat(faithful$waiting,mean(faithful$waiting)) x = scale(cbind(faithful$eruptions,faithful$eruptions^2)) data = data.frame(y,x) logit(rep(0,3),data)
#> [1] -188.536