myNRML | R Documentation |
Newton Rhapson maximum likelihood
myNRML(x0, delta = 0.001, llik, xrange, parameter = "param")
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 |
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
## Not run: myNRML(x0=1,delta=0.000001,llik=function(x) log(dpois(4,x)*dpois(5,x)),xrange=c(0,20),parameter="lambda")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.