Skip to content

about power.law.fit

2 messages · Weijia You, Gábor Csárdi

#
power.law.fit simply ML fits the 'prob(d) = d^\alpha' model to the
input, where d is positive integer. It seems to work for me:
Call:
mle(minuslogl = mlogl, start = list(alpha = start))

Coefficients:
   alpha
3.017056
Warning message:
In sample(1:10000, prob = (1:10000)^-2, rep = TRUE) :
  Walker's alias method used: results are different from R < 2.2.0
Call:
mle(minuslogl = mlogl, start = list(alpha = start))

Coefficients:
   alpha
2.016645

It returns with an "mle" object, so you can call 'confint',  'logLik',
etc. on it, see "mle-class" for details.
Maximum likelihood estimation

Call:
mle(minuslogl = mlogl, start = list(alpha = start))

Coefficients:
      Estimate Std. Error
alpha 2.016645 0.01085921

-2 log L: 32150.62
Profiling...
   2.5 %   97.5 %
1.995522 2.038091

Gabor

ps. there is also an igraph-help mailing list, FYI. Just in case I
miss your questions here....
On Sun, Jan 18, 2009 at 4:50 PM, Weijia You <weijiawx at gmail.com> wrote: