title: Not returning desired output in fitdistr function
body: <p>I have this code here, i'm trying to fit a weibull distribution using <code>fitdistr</code> from the <code>MASS</code> package, but I get the following message:</p>
  
  <pre><code>fitdistr(means[1], densfun="weibull")
  Error in stats::optim(x = 0.153582646213799, par = list(shape = NA_real_,  :
  non-finite value supplied by optim
  
  means[1] = 0.154
  </code></pre>
  
  <p>What does this mean?
  Is there any reason why I get this error and how should I avoid it? I don't have much background on the statistics and don't know what that means.</p>