[R] R-help Digest, Vol 185, Issue 1

Nina Schönfelder nin@@@choenfelder @ending from uni-bielefeld@de
Tue Jul 3 12:33:49 CEST 2018

Dear Luke,

it true that the number is not immediately displayed in the 
GMM-regression output using the plm package. To get the number of 
instruments (incl. exogenous variables and time dummies) you have to type:

       k <- model    # so that k is the pgmm-estimation output (an 
object of class c("pgmm","panelmodel")
       ninst <- ncol(k$W[[1]])    # the number of instruments is simply 
count as the number of columns in the matrix of instruments

Best regards,



*Dr. Nina Schönfelder*

*Nationaler Open-Access-Kontaktpunkt OA2020-DE*
Universität Bielefeld
Universitätsstr. 25
D-33615 Bielefeld

Phone: +49 (0) 521/106-2546
E-mail: nina.schoenfelder using uni-bielefeld.de
Homepage: https://oa2020-de.org/
Twitter: @oa2020de
Facebook: https://www.facebook.com/oa2020de/

Am 01.07.2018 um 12:00 schrieb r-help-request using r-project.org:
> Message: 1
> Date: Sat, 30 Jun 2018 11:03:06 +0200
> From: =?UTF-8?b?xYF1a2FzeiBQacSZdGFr?=<L.Pietak using poczta.fm>
> To:r-help using r-project.org
> Subject: [R] Question
> Message-ID: <hbqeaucobgtjfdbbzufb using kmye>
> Content-Type: text/plain; charset="utf-8"
> Hi, My name is Luke and I come from Poland. I have one question, maybe very simple, but I can not resolve it. In dynamic panel data (GMM estimator) after running the model, I recieve a AR test and Sargan test, but the "number of instruments" are not displayed. In Stata and Gretl this informatios is given, in R no. My question is, how to obtain the number of instruments?.
> Thank you for helping.
> Luke

	[[alternative HTML version deleted]]

More information about the R-help mailing list