I am trying to fit a distribution using the following code:
fit.gamma <- fitdist(x, distr = "gamma", method = "mle")
I get the following error:
Error in fitdist(x, distr = "gamma", method = "mle") : data must be a numeric vector of length greater than 1
X is a numeric variable. It looks like this when plotted.1
Why do I get this error. Any tips are greatly appreciated.