a fixed effects (within) model does not have a single intercept: it has
N. I suggest you have another look at FE models' theory.
Some confusion often stems from Stata (misleadingly, IMHO) reporting an
"intercept" which is actually the average of the individual intercepts,
which you can recover in R as 'mean(fixef(<yourmodel>))'. Remember,
though, that this isn't "the intercept" of the estimated model in the
usual sense of the term. If you "need" an intercept, then you must
review your specification.
Best,
Giovanni
--------------- original message
-------------------------------------------------------
Message: 1
Date: Sat, 29 Dec 2012 14:47:33 +0100
From: matteo ognibene <ogniben...@hotmail.it>
To: <r-h...@r-project.org>
Subject: [R] I need intercept in plm model
Message-ID: <DUB105-W4934C48C7...@phx.gbl>
Content-Type: text/plain
Hi,R 2.15.2 plm() function on Windows 7
when i perform a plm regression, i can't manage to obtain the intercept,
but I need it.it gives me just the beta coefficient.
my formula: fixed <- plm(deltaS ~ L1.deltaS + L2.deltaS, data=Mody_R,
index=c("country_id", "date"), model="within")
my output: Coefficients : Estimate Std. Error t-value
Pr(>|t|) L1.deltaS -0.063576 0.017950 -3.5419 0.0004031
***L2.deltaS -0.068272 0.017966 -3.8001 0.0001474 ***---
I tried adding "-0", "+1", "intercept=TRUE"
Thanks,Matteo
[[alternative HTML version deleted]]
------------- end original message -----------------
Ai sensi del D.Lgs. 196/2003 si precisa che le informazi...{{dropped:12}}
I fully agree with David: please read the posting guide.
Anyway, the error message says it all: "the estimated variance of the
individual effect is negative". See e.g. the "basic panel" chapter (10
or 11) in Wooldridge's "Econometric Analysis of XS and Panel Data" to
understand why this may happen.
Stata's behaviour is (as far as I remember) to transparently substitute
it with 0; 'plm's is to let the estimation fail, issuing a warning. You
can try a different 'random.method' which may, or might not, solve the
problem, depending on your data.
Hint: a random effects model with sigma_mu=0 is a pooling model.
HTH
Giovanni Millo, PhD
Research Dept.,
Assicurazioni Generali SpA
Via Machiavelli 3,
34132 Trieste (Italy)
tel. +39 040 671184
fax +39 040 671160
------------ original message ------------------
Message: 49
Date: Thu, 3 Jan 2013 13:23:07 -0800
From: David Winsemius <dwins...@comcast.net>
To: matteo ognibene <ogniben...@hotmail.it>
Cc: "r-h...@r-project.org" <r-h...@r-project.org>
Subject: Re: [R] plm random effect: the estimated variance of the
individual effect is negative
Message-ID: <D32FDC11-38AE-4AAF...@comcast.net>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
> [[alternative HTML version deleted]]
--------------- end original message ---------------
Ai sensi del D.Lgs. 196/2003 si precisa che le informazi...{{dropped:12}}
______________________________________________