logit: Logit likelihood function

Description Usage Arguments Value Examples

View source: R/Functions.R

Description

logit is the logistic likelihood function given data.

Usage

1
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

1
2
3
4
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)

bayesdistreg documentation built on May 1, 2019, 8:03 p.m.