Displaying 20 results from an estimated 200 matches similar to: "PGMM help - Strange Errors when Fitting Models"
2010 Jun 26
0
dynamic panelmodel pgmm
Hi,
I want to estimate a dynamic paneldata model with the following code, but unfortenately I received the error message below.
form<-PB~Activity+Solvency+Cap_Int
2009 Mar 30
0
pgmm (Blundell-Bond) sample needed)
Dear Ivo, dear list,
(see: Message: 70
Date: Thu, 26 Mar 2009 21:39:19 +0000
From: ivowel at gmail.com
Subject: [R] pgmm (Blundell-Bond) sample needed)
I think I finally figured out how to replicate your supersimple GMM
example with pgmm() so as to get the very same results as Stata.
Having no other regressors in the formula initially drove me crazy. This was a case where simpler models are
2009 Mar 26
1
pgmm (Blundell-Bond) sample needed
Dear R Experts---
Sorry for all the questions yesterday and today. I am trying to use Yves
Croissant's pgmm function in the plm package with Blundell-Bond moments. I
have read the Blundell-Bond paper, and want to run the simplest model
first, d[i,t] = a*d[i,t-1] + fixed[i] + u[i,t] . no third conditioning
variables yet. the full set of moment conditions recommended for
system-GMM,
2009 Mar 27
0
R: plm and pgmm
dear giovanni---
thanks for answering on r-help to me as well as privately. I very much
appreciate your responding. I read the plm vignette. I don't have the book,
so I can't consult it. :-(. I am going to post this message now (rather
than just email it privately), because other amateurs may have similar
questions in the future, and find this message and your answers via google.
2009 Mar 08
1
singular matrices in plm::pgmm()
Hi list,
has anyone succeeded in using pgmm() on any dataset besides
Arellano/Bond's EmplUK, as shown in the vignette?
Whatever I try, I eventually get a runtime error because of a singular
matrix at various points in pgmm.diff() (which gets called by pgmm()).
For example, when estimating a "dynamic" version of the Grunfeld data:
data(Grunfeld, package="Ecdat")
grun
2010 May 17
0
(no subject)
Dear Limin,
might be just about anything. Could you please provide a reproducible
example?
Best,
Giovanni
----------------- Original message ----------------------
Message: 51
Date: Mon, 17 May 2010 10:36:03 +0800 (CST)
From: ??? <dlmsos at 163.com>
To: r-help at r-project.org
Subject: [R] pgmm function
Message-ID: <b2cba0.35fc.128a41e3684.Coremail.dlmsos at 163.com>
Content-Type:
2013 Jan 13
1
R error: system is computationally singular when building GMM model
Dear,
I built the generalized method of moments model to estimate the sales rank
in the bookstore using plm package in R.
The equation is:
data1.gmm <- pgmm(dynformula(lnsales_rank ~ ln_price + avg_ham_rate +
avg_spam_rate + num_of_ham+ num_of_spam + ship_code2 +ship_code3
+ship_code4+ ship_code5+ ship_code6 + ship_ code7, lag = list(0, 0, 0,
0,0,0,0,0,0,0,0,0), log =FALSE), data=data,
2009 Nov 13
0
about the pgmm in plm package (application and singularity)
Dear Sir or Madam:
I am Shaojuan Liao, the 3rd year Ph.D. student from Econ Department,
Virginia Tech.
I don't know whether it is appropriate to ask you questions on the
command pgmm. But I don't know how to deal with the case where all X are
exogenous and all T time periods' X can be used as the instrument.
Problem 1:
I know when X are predetermined, such as
Z=[y1,X1,X2, 0,
2012 Apr 09
0
Error using PGMM function in the PLM package
Good day fellow R users:
I have routinely received the following message when attempting to
estimate a GMM model for a somewhat square panel (N = 20, T = 9-27,
Obs = 338) using the pgmm function in the plm package:
Error in function (..., deparse.level = 1) :
number of rows of matrices must match (see arg 2)
So far, I am not wedded to a particular GMM model but what I have used
thus far is
2012 Nov 09
0
Can pgmm in the plm package include additional endogenous variables?
Dear R-Users,
I am using pgmm in the plm package to estimate a dynamic models with panel
data. Besides the lagged dependent variable, I also have some other
endogenous variables. Does the pgmm have an argument that allows me to
specify these endogenous variables and their instruments? I didn't find this
argument in the description and online.
Thank you very much for your help!
2017 Dec 25
1
package : plm : pgmm question
Dear Sir,
I am using the package pgmm you build in panel regression. However, I found that when T is 10, N=30, the error would show as following:
system is computationally singular: reciprocal condition number
But the similar code works well on Stata, so I wonder how I can optimize the algorithm, for example , the inverse matrix optimization ? And I have checked my data as well, no
2013 May 07
0
Orthogonal transformation option in pgmm-plm
Hi,
I'm a pgmm (plm) user and would like to know if a orthogonal transformation
is available, as in Stata xtabond2. Can someone help me? Thanks! Kinds
regards,
Eva
[[alternative HTML version deleted]]
2005 Aug 14
1
Panel data handling (lags, growth rates)
I have written two functions which do useful things with panel data
a.k.a. longitudinal data, where one unit of observation (a firm or a
person or an animal) is observed on a uniform time grid:
- The first function makes lagged values of variables of your choice.
- The second function makes growth rates w.r.t. q observations ago,
for variables of your choice.
These strike me as
2009 Jan 21
0
trouble switching to 'plm' from 'xtabond' and Stata
Hello,
I am switching to R from Stata and I am having particular trouble with
the transition from Stata's 'xtabond' and 'ivreg' commands to the
"plm" package. I am trying to replicate some of the dynamic panel data
work using the UK Employment data in Arellano and Bond (1991) and
available as 'EmplUK' under the 'plm' package.
I have been
2009 Nov 27
1
problem with "dynformula" from "plm" package [RE-POST]
Hello list,
I'm following the paper (http://www.jstatsoft.org/v27/i02/paper) on
how to use "plm" to run panel regressions, and am having trouble with
what I believe should be something very basic.
When I run the command (p.9 in the paper):
R>
dynformula(emp~wage+capital,log=list(capital=FALSE,TRUE),lag=list(emp=2,c(2,3)),diff=list(FALSE,capital=TRUE))
I see:
emp ~ wage +
2009 Nov 27
3
problem with "dynformula" from "plm" package
Hello list,
I'm following the paper (http://www.jstatsoft.org/v27/i02/paper) on how to
use "plm" to run panel regressions, and am having trouble with what I
believe should be something very basic.
When I run the command (p.9 in the paper):
R>
dynformula(emp~wage+capital,log=list(capital=FALSE,TRUE),lag=list(emp=2,c(2,3)),diff=list(FALSE,capital=TRUE))
I see:
emp ~ wage +
2013 Mar 05
2
Issues when using interaction term with a lagged variable
Hi there!
Today I tried to estimate models using both plm and pgmm functions, with an
interaction between X1 and lag(X2, 1). And I notice two issues.
Let "Y=b_1 * X_1 + b_2 * X_2 + b_3 * X_1 * x_2 + e" be our model.
1) When using plm, I got different results when I coded the interaction
term with I(X1 * lag(X2, 1)) and when I just saved this multiplication X1 *
lag(X2, 1) in a
2011 Jun 12
3
Running a GMM Estimation on dynamic Panel Model using plm-Package
Hello,
although I searched for a solution related to my problem I didn?t find one,
yet. My skills in R aren?t very large, however.
For my Diploma thesis I need to run a GMM estimation on a dynamic panel
model using the "pgmm" - function in the plm-Package.
The model I want to estimate is: "Y(t) = Y(t-1) + X1(t) + X2(t) + X3(t)" .
There are no "normal" instruments
2008 Sep 10
1
using function instead of formula in plm
Hi all,
I am trying to use plm to estimate coefficients in a model consisting of a system of equations. So far I used mle2 from the package "bbmle", but now I need to test for autocorrelation and mle2 does not provide for the necessary tests. mle2 needs a function as input that might as well consist of many different equations. plm however requires an object of class formula that needs
2012 Apr 12
1
Could dynlm function work for xts objects?
It seems to only works for zoo or ts objects?
I tried to run it for xts objects, and error message occurs. Once I
coerce it to be an zoo object (by as.zoo), it works.
Error message:
Error in model.frame.default(formula = dynformula(PIh - PI ~ L(X, 0:i) + :
variable lengths differ (found for 'L(X, 0:i)')
In addition: Warning messages:
1: In zoo(coredata(x), order.by = index(x), ...)