Displaying 2 results from an estimated 2 matches for "lnagevec".
Did you mean:
lnwagevec
2017 Nov 07
0
Using MLE on a somewhat unusual likelihood function
...lues
> rarely go as high as 8 or low as -5.
>
If you're getting infinite likelihoods, something may be needing a rethink, but first this:
I don't think
-sum(lnwagevec>-200 & ln2wagevec<200, na.rm=TRUE)
does what I think you think it does....
Presumably you wanted -sum(lnagevec[lnwagevec>-200 & ln2wagevec<200], na.rm=TRUE)
-pd
> Thank you in advance to anyone responding!
> /Hugo
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more,...
2017 Nov 07
2
Using MLE on a somewhat unusual likelihood function
So I am trying to use the mle command (from stats4 package) to estimate a
number of parameters using data but it keeps throwing up this error message:
Error in solve.default(oout$hessian) :
Lapack routine dgesv: system is exactly singular: U[1,1] = 0
This error sometimes indicates that the list of starting values is too far
from optimum but this is unlikely since I picked values close to where