func7: MLE

Description Usage Arguments Value Examples

View source: R/NguyenToolsRfunctions.R

Description

Computes the liklihood of a given distribution for data x

Usage

1
func7(x, func, interval)

Arguments

x

vector

func

function, e.g., 'function(theta, x) dgamma(x, shape = theta, log = TRUE)'

interval

vector, i.e., interval for optimize function

Value

scalar

Examples

1
2
3
func1 = function(theta, x) dgamma(x, shape = theta, log = TRUE)
result7_gamma <- func7(x1,func1,c(0,3))
result7_gamma

benjnguyen/NguyenTools documentation built on May 25, 2019, 3:22 p.m.