Re: [R] Using MLE on a somewhat unusual likelihood function

2017-11-07 Thread peter dalgaard
> On 7 Nov 2017, at 11:38 , peter dalgaard wrote: > > Presumably you wanted -sum(lnagevec[lnwagevec>-200 & ln2wagevec<200], > na.rm=TRUE) Well, after correcting the obvious spelling error. Sorry about that... -pd -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business Schoo

Re: [R] Using MLE on a somewhat unusual likelihood function

2017-11-07 Thread peter dalgaard
(inline) > On 7 Nov 2017, at 06:02 , Hugo André wrote: > > 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 exactl

[R] Using MLE on a somewhat unusual likelihood function

2017-11-06 Thread Hugo André
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