myNRML: Newton-Raphson maximum likelihood approximation

Description Usage Arguments Value Examples

View source: R/Lab10.R

Description

approximate a parameter of interest This needs initial x guess

Usage

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

Arguments

x0

initial guess of root

delta

acceptable difference for solution convergence

llik

likelihood function whose root to be estimated

xrange

set range for x in the graphic

parameter

set parameter as display on graphic

Value

root estimated by Newton Raphson for maximum likelihood estimation

Examples

1
myNRML(x0=1,delta=0.000001,llik=function(x) log(dpois(12,x)*dpois(10,x)),xrange=c(0,20),parameter="lambda" )

fraclad/math4753 documentation built on April 21, 2020, 2:21 p.m.