Usage
anm.ls(X, poss=NULL, parameter = "mu", est.lty = 2, est.col = 2,
conv=diff(range(X))/50, anim=TRUE, plot.lsfunc = TRUE, plot.res = TRUE,
interval=0.01, xlab=expression(paste("Estimates for ", italic(E),
"(",italic(X),")", sep = "")),...)
anm.ls.tck()
Arguments
X
A numeric vector containing sample data.
poss
An ordered numeric sequence of possible parameter estimates. Inclusion of the least squares estimate in the vector (e.g. $bar{X}$ for $mu$ will cause the least squares function be minimized at this value.
parameter
Parameter to be estimated. Only estimation for E(X) is currently implemented. Note that if X ~ N($\mu$,$\sigma^2$) then E(X) = $\mu$.
est.lty
Line type to be used to indicate the least squares estimate.
est.col
Line color to be used to indicate the least squares estimate.
conv
Precision of LS function. Decreasing conv
increases the smoothness and precision of the function.
anim
A logical command indicating whether animation should be used in plots.
plot.lsfunc
A logical command indicating whether the least-squares function should be plotted.
plot.res
A logical command indicating whether a plot of residuals should be created.
interval
Speed of animation (in frames per second). A smaller interval decreases speed. May not work in all systems; see Sys.sleep
. ...
Additional arguments to plot