Fitting simple models using Maximum likelihood using R

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 9

  • @brunarodrigues5236
    @brunarodrigues5236 7 лет назад

    How do I do if I want on loglokelihood function not given by the R library? I have one, and when I use mle2 with BFGS method the program says " L-BFGS-B needs finite values of 'fn' ", so I don't know how to solve his

    • @iandworkin1347
      @iandworkin1347  6 лет назад

      Check the R documentation, but if memory serves you just need to provide an additional argument with the vector with th constraints (i.e. boundaries for searching).

  • @stoptheangst
    @stoptheangst 6 лет назад

    i've been working with the data in matrix format. This program seems to rely on data frames ...any suggestions?

    • @NphiniT
      @NphiniT 5 лет назад

      Convert to DataFrames then!

    • @iandworkin1347
      @iandworkin1347  4 года назад

      Do you mean bbmle? I don't think it needs data frames. It could be the way I coded something.. I am hoping to put all scripts up and make links for them sometime soon. I have not taught this course in a long while.

  • @Zirea.eya69
    @Zirea.eya69 7 лет назад

    Whats the difference of using optim and MLE?

    • @iandworkin1347
      @iandworkin1347  7 лет назад

      MLE and MLE2 (in the bbmle library) are wrappers for optim. They call the same function optim(), but are meant to be a bit easier. note that optim and optimize are NOT the same. optimize only works for one parameter problems. optim (and MLE and MLE2) allow for potentially an arbitrary number of functions.

  • @mariakamran7442
    @mariakamran7442 6 лет назад +1

    Could you kindly upload your code.

    • @iandworkin1347
      @iandworkin1347  4 года назад

      I am hoping to put them up on github soon. I have not taught this course for 8 years...