myNRML: Newton Rhapson maximum likelihood

View source: R/myNRML.R

myNRMLR Documentation

Newton Rhapson maximum likelihood

Description

Newton Rhapson maximum likelihood

Usage

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

Arguments

x0

the initial x point at which to start analysing the graph to see where it intersects x-axis

delta

the difference between x points analysed

llik

function you want to implement. Must be a log base e function

xrange

the range of the x axis for the log likelihood graph

parameter

the parameter that is to be estimate eg. mu, sigma, lambda

Value

returns two graphs, first the log likelihood graph of the parameter of interest. Second the derivative of the log likelihood graph that shows the different x points analysed and the final x point at which the graph intersects the x axis

Examples

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

aanahitajm/math4753 documentation built on May 3, 2022, 7:25 p.m.