mle_plot_residuals {likelihoodTools} | R Documentation |
Plots Residuals vs. Predicted MLE
Description
Plots residuals (observed - residuals) values vs. predicted values. The predicted values are obtained from the model with the parameters values estimated by maximum likelihood estimation using simulated annealing.
Usage
mle_plot_residuals(
x,
yvar,
lab_residuals = "Residuals",
lab_predicted = "Predicted",
...
)
Arguments
x |
List with the results of the simulated annealing algorithm for Maximum
Likelihood Estimation. See |
yvar |
The name of the column that contains the dependent variable
(the “observed” value). This column must be present in the |
lab_residuals |
The text for the residual axis lab (y-axis) |
lab_predicted |
The text for the predicted axis lab (x-axis) |
... |
other ggplot2 parameters |
Value
A ggplot
object displaying the residuals vs. predicted values,
with a horizontal line at zero.
[Package likelihoodTools version 1.0.0 Index]