Re: [R] function censReg in panel data setting

From: felipnunes <>
Date: Sat, 24 Sep 2011 14:58:59 -0700 (PDT)

Hi guys,

did you figure out a way to solve your problem, Igor?

I'm still trying to understand what's happening to my estimations. My data set is also big (>50,000) and I get the same error:

Error in maxNRCompute(fn = logLikAttr, fnOrig = fn, gradOrig = grad, hessOrig = hess, :
  NA in the initial gradient

I already tried many different specifications and the error is always the same. I'm fitting the following model:

tob7 <- censReg(transfers.cap ~ + + pt.opp + pt.coa + psdb.coa + pib.cap + transfers.cap.lag + pib.cap + ifdm + log(populat) + mayor.vot.per + log(bol.fam.per+0.01) + factor( + factor(year) - 1, left=0, right=Inf, method="BHHH", nGHQ=8, iterlim=10000, data = pdata2)


View this message in context:
Sent from the R help mailing list archive at

______________________________________________ mailing list
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Received on Sun 25 Sep 2011 - 00:31:01 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 25 Sep 2011 - 04:20:24 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive