loglikelihood: Finds the MLE based on given data, distribution and interval

Description Usage Arguments Value Examples

View source: R/loglikelihood.R

Description

Finds the MLE based on given data, distribution and interval

Usage

1
loglikelihood(dataset, distribution, interval)

Arguments

dataset

dataset to use

distribution

distribution function

interval

interval to search

Value

MLE

Examples

1
2
3
b <- scan(url("http://www.stat.umn.edu/geyer/3701/data/q1p7b.txt"))
binom = function(theta, b) {dbinom(b, 20, prob = 1 / (1 + exp(- theta)), log = TRUE)}
loglikelihood(b, binom, c(-100,100))

neckl004/NecklenJacobTools documentation built on May 25, 2019, 10:34 p.m.