myNRML: Estimate a single parameter of a distribution using the...

Description Usage Arguments Value Examples

View source: R/myNRML.R

Description

Estimate a single parameter of a distribution using the Newton-Raphson Algorithm and method of maximum likelihood.

Usage

1
myNRML(x0, delta = 0.001, llik, xrange, parameter = "param")

Arguments

x0

Starting value for Newton-Raphson Algorithm.

delta

Smallest step size for Newton-Raphson Algorithm.

llik

Likelihood function for the parameter.

xrange

A list denoting the upper and lower limits of values between which the estimate will lie.

parameter

The label for the parameter to be estimated.

Value

Returns the values for each iteration of the algorithm, and prints graphs of the log likelihood and its derivative.

Examples

1
myNRML(x0=1,delta=0.000001,llik=function(x) log(dpois(4,x)*dpois(6,x)*dpois(7,x)*dpois(6,x)*dpois(5,x)),xrange=c(0,20),parameter="lambda" )

matthewCmatt/MATH4753CARROLL documentation built on April 20, 2021, 7:25 p.m.