mle.demo.RdThis function graphically shows log likelihoods for a set of data and the normal distribution and allows you to interactively change the parameter estimates to see the effect on the log likelihood.
The function creates a plot with 3 panels: the top panel shows a
normal curve based on the current values of the mean and standard
deviation along with a vertical line for each point in x (the
product of the heights of these lines is the likelihood, the sum of
the logs of their heights is the log likelihood).
The lower 2 plots show the profiles of the mean and standard deviation. The y-axis is the likelihoods of the parameters tried so far, and the x-axes are the mean and standard deviation tried. The point corresponding to the current parameter estimates will be solid red.
A Tk slider box is also created that allows you to change the current estimates of the mean and standard deviation to show the effect on the log likelihood and find the maximum likelihood estimate.
This function is run for its side effects and returns NULL.
fitdistr in package MASS, mle in
package stats4, slider