Skip to content
Prev 306968 / 398506 Next

Help with R Fitting an inverse Gamma

On Thu, Oct 4, 2012 at 11:42 AM, kmammasis <mammasis82 at hotmail.com> wrote:
# > rm(list=ls())
#

Please don't include this line into your postings: it's quite rude to
clobber the data of folks trying to help you.
# Bad name for a data variable: see
library(fortunes)
fortune("dog")
No you haven't. The R-help servers scrub most attachments. Use dput()
to make a nice reproducible example:

http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

Cheers,
M
Totally random guess: your function isn't being evaluated properly
either because i) you used the name data() which is also a function
and R is having trouble finding your data; ii) your data is such that
dinvgamma() gives bad value at the initial point c(5,2,2)

Cheers,
Michael