myNRML: Newton-Raphson Function

View source: R/myNRML.R

myNRMLR Documentation

Newton-Raphson Function

Description

Newton-Raphson Function

Usage

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

Arguments

x0

the value of x at 1

delta

used for a certain increment

llik

a value of likelihood

xrange

range of x values

parameter

a way to not hard code the x label

Value

a log likelihood curve and Newton-Raphson Algorithm curve

Examples

## Not run: 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" )

reaganrasmussen/GOODMATH4753repo documentation built on May 12, 2022, 4:38 p.m.