Creating function arguments from a named list (with an application to stats4::mle)

后端 未结 4 1452
难免孤独
难免孤独 2021-02-06 02:20

I should start by saying what I\'m trying to do: I want to use the mle function without having to re-write my log likelihood function each time I want to try a different model s

4条回答
  •  别那么骄傲
    2021-02-06 02:57

    The R code that Ramnath provided can also be applied to the optim function because it takes vectors as parameters also.

提交回复
热议问题