| Inferences Normal Distribution | R Documentation |
Estimates parameters of a univariate Normal Distribution with maximum likelihood.
enorm(data, plot.it = TRUE, empirical = FALSE, col.estimated = "orange",
col.empirical = "navy", ...)
data |
vector containing the sample as rnorm. |
plot.it |
logical, TRUE to plot the histogram with estimated distribution curve. |
empirical |
logical, TRUE to add the empirical curve ("Kernel Density Estimation") in the plot. |
col.estimated |
a colour to be used in the curve of estimated density. |
col.empirical |
a colour to be used in the curve of empirical density. |
... |
further arguments and graphical parameters passed to hist. |
CASTRO, M. O.; MONTALVO, G. S. A.
## Generate a sample.
data = rnorm(n = 1000, mean = 18, sd = 2)
## And now, estimate the parameters, using the 'data' list.
enorm(data)
## Not plotting the graphic.
enorm(data, plot.it = FALSE)
## Adding the empirical curve to the graphic.
enorm(data, empirical = TRUE)
## Changing the color of the curves.
enorm(data, empirical = TRUE, col.estimated = "pink",
col.empirical = "red3")
## Using "..."
enorm(data, empirical = TRUE, col.estimated = "pink",
col.empirical = "red3", breaks = 300)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.