Dears,
Any help?
Thanks,
LFRC
LFRC wrote:
>
> Dears,
>
> I'm trying to find the parameters (a,b, ... l) that optimize the function
> (Model)
> described below.
>
> 1) How can I set some constraints with MLE2 function? I want to set p1>0,
> p2>0
Dears,
I'm trying to find the parameters (a,b, ... l) that optimize the function
(Model)
described below.
1) How can I set some constraints with MLE2 function? I want to set p1>0,
p2>0,
p3>0, p1>p3.
2) The code is giving the following warning.
Warning: optimization did not converge (code 1)
,f=model2,
grad=NULL,
ui = c(1,-1,0.5),
ci = rep(0,3))
ERROR:
Error in optim(start, f, method = method, hessian = TRUE, ...) :
objective function in optim evaluates to length 30 not 1
Best regards,
LFRC
Ben Bolker wrote:
>
> LFRC yahoo.com.br> writes:
&g
;Model",as.list(p))
> }
Best regards,
LFRC
Ben Bolker wrote:
>
> LFRC yahoo.com.br> writes:
>
>>
>>
>> Dear,
>>
>> I'm starting on R language. I would like some help to implement a MLE
>> function.
>>
>> I wish to obta
Dear,
I'm starting on R language. I would like some help to implement a MLE
function.
I wish to obtain the variables values (alpha12, w_g12, w_u12) that maximize
the function LL = Y*ln(alpha12 + g*w_g12 + u*w_u12).
Following the code:
rm(list=ls())
ls()
library(stats4)
Model = functio
5 matches
Mail list logo