powered by
A function to help assessing the distribution that best fit a data vector
plot_fit_dist(x, dist)
Returns: Empirical and theoretical density plots, Empirical and theoretical CDFs, Q-Q plot, P-P plot
A numeric vector of length at least one containing only finite values (values must be >= 0)
Character vector indicating the distribution to be ploted:"norm", "lnorm", "geom", "exp", "pois", "cauchy", "logis", "weibull"
F. Barrio-Parra
plotdist from Library (fitdstrplus)
set.seed(123) a <- rnorm(n = 100, mean = 10, sd = 1) plot_fit_dist(a, "norm")
Run the code above in your browser using DataLab