Displaying 20 results from an estimated 800 matches similar to: "Invalid term in model formula with gmm after formula.tools is loaded"
2024 Nov 01
1
Invalid term in model formula with gmm after formula.tools is loaded
Hi Aristide and welcome to R-help!
Your message was a bit mangled [*]. It's best to compose messages to
this mailing list in plain text. Otherwise (when composed in HTML), the
mailing list eats the HTML part and we're left with the plain text part
automatically generated by your mailer, which isn't always readable.
? Wed, 30 Oct 2024 17:45:29 +0100
Elys?e Aristide <ariel92and at
2024 Nov 03
1
Invalid term in model formula with gmm after formula.tools is loaded
Hi Ivan,
Thank you for your message. Does that mean that I should send a new
message? Or is it okay for this time?
Best,
Aristide
On Fri, Nov 1, 2024, 22:29 Ivan Krylov <ikrylov at disroot.org> wrote:
> Hi Aristide and welcome to R-help!
>
> Your message was a bit mangled [*]. It's best to compose messages to
> this mailing list in plain text. Otherwise (when composed in
2011 Oct 25
1
regression using GMM for mulltiple groups
Inthe code below I was trying to to obtain the GMM estimates for CAPM
(REGRESSION) for 36 stocks each have 180 observations,however it only gives
me one output rather than 36.
In SAS i would just put in a *By statement*. I have a variable TICKER that
categorize them into 36 groups.
*How can I obtain all 36 output instead of just one.*
**
2024 Nov 04
2
Invalid term in model formula with gmm after formula.tools is loaded
? Sun, 3 Nov 2024 12:53:52 +0100
Elys?e Aristide <ariel92and at gmail.com> ?????:
> Does that mean that I should send a new message? Or is it okay for
> this time?
No need to post it again. Did it help to replace the as.character()
method for formulas provided by 'formula.tools'? I see the problem is
already reported to the 'formula.tools' maintainer [*], so there
2013 Feb 20
2
'gmm' package: How to pass controls to a numerical solver used in the gmm() function?
Hello --
The question I have is about the gmm() function from the 'gmm' package
(v. 1.4-5).
The manual accompanying the package says that the gmm() function is
programmed to use either of four numerical solvers -- optim, optimize,
constrOptim, or nlminb -- for the minimization of the GMM objective
function.
I wonder whether there is a way to pass controls to a solver used
while calling
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,
2024 Apr 23
1
System GMM yields identical results for any weighting matrix
A copy of this question can be found on Cross Validated:
https://stats.stackexchange.com/questions/645362
I am estimating a system of seemingly unrelated regressions (SUR) in R.
Each of the equations has one unique regressor and one common regressor. I
am using `gmm::sysGmm` and am experimenting with different weighting
matrices. I get the same results (point estimates, standard errors and
2024 Apr 23
1
System GMM yields identical results for any weighting matrix
Generally speaking, this sort of detailed statistical question about a
speccial package in R does not get a reply on this general R
programming help list. Instead, I suggest you either email the
maintainer (found by ?maintainer) or ask a question on a relevant R
task view, such as
https://cran.r-project.org/web/views/Econometrics.html . (or any other
that you judge to be more appropriate).
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 May 27
2
GMM estimation
Hello there!!!
Sorry to bother you all with such question and difficulties that I have been
facing on.
Recently I have been searching for packages to run GMM estimatives with R.
I have been searching for such packages for a while, but since I am a new
user of R system,
my quest so far was unsucessful.
That´s why I had decided to ask to this forum. Hope that anyone could help
me!
I know that
2014 May 06
3
Mapa de quantiles con spplot
Hola,
El problema con la propuesta de Olivier es que los intervalos son
diferentes para cada variable.
La forma sencilla y rápida es:
spplot(zm["part88"], col.regions=plotclr, at=class$brks)
Pero para que quede más elegante hay que dar algunos pasos más:
## Intervalos en forma character
op <- options(digits=4)
tab <- print(class)
options(op)
intChar <- names(tab)
## Indice
2008 Dec 19
2
How do I generate one vector for every row of a data frame?
I am trying to generate a set of data points from a Gaussian mixture
model. My mixture model is represented by a data frame that looks
like this:
> gmm
weight mean sd
1 0.3 0 1.0
2 0.2 -2 0.5
3 0.4 4 0.7
4 0.1 5 0.3
I have written the following function that generates the appropriate data:
gmm_data <- function(n, gmm) {
c(rnorm(n*gmm[1,]$weight, gmm[1,]$mean,
2014 May 05
3
Mapa de quantiles con spplot
Hola, no me funciona:
Te contesto lo mismo que le contesté a otro compañero de la lista, espero ser más claro.
Les comparto la carpeta con la capa y los datos que estoy usando.
https://www.dropbox.com/s/umy0evt3qm1wr4d/dissolve.zip
Esto es lo que estoy haciendo:
library(rgdal)
library(maptools)
library(sp)
library(classInt)
library(RColorBrewer)
zm <- readOGR(?.?, ?zmdis?)
data <-
2014 May 03
2
Mapa de quantiles con spplot
Hola,
Intento representar en un mapa participaciones porcentuales de los sectores económicos y no logro hacerlo con spplot.
He intentado con spplot(zm, c(?part88?, ?part93?), cuts=4, col.regions=brewer.pal(4, ?Set3?))
Lo pude hacer utilizando el base graphics de R, definiendo:
> plotvar88 <- zm$part88
> nclr <- 8
> plotclr <- brewer.pal(nclr, "PuOr")
> plotclr
2012 Jul 31
0
Problems in using GMM for calculating linear regression
Hi,
I'm trying to use gmm package in order to calculate linear regression (I
need to use the gmm for other application and this is a prior test I'm
doing).
I've defined a function for linear regression with 2 variables (x[,1] holds
the y values, while x[,2:3] holds the x values):
function(tet, x)
{
m1 <- (x[,1] - (tet[1] + tet[2] * x[,2] + tet[3] * x[,3])) * x[,2]
m2 <-
2024 Apr 23
0
System GMM fails due to computationally singular system. Why?
A copy of this question can be found on Cross Validated:
https://stats.stackexchange.com/questions/645610
I am estimating a system of seemingly unrelated regressions (SUR) with
`gmm::sysGmm` in R. Each of the equations has one unique regressor and one
common regressor. The common regressor is a dummy variable indicating the
last observation (n-1 zeros followed by 1). I impose a restriction that
2010 Jul 02
0
GMM with covariance moment condicion
hello
I have covariance stacionary proces, and i want to estimate some parameter
of this proces via gmm.
My problem is with write "g" -function.
0 order autocovariance is not problem
1 and higher order autocavariance are problem, because add order from 0 mean
that I "loose" one "observacion"
if I have 100 observation and i am going to use mean, variance and first
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,
2010 Jun 08
0
GMM: "The covariance matrix of the coefficients is singular"
Hi All,
I'm trying to estimate some parameters in my model via GMM using the
function gmm(), but I keep getting the message "The covariance matrix of
the coefficients is singular". I've changed the moment conditions and
the initial value of the parameters, and I still get this message. Are
the results valid after receiving this message? Any ideas on how to get
rid of it?
2005 Dec 07
1
summary[["r.squared"]] gives strange results
I am simulating an ANOVA model and get a strange behavior from the
summary function. To be more specific: please run the following code
and see for yourself: the summary()[["r.squared"]] values of two
identical models are quite different!!
## 3 x 3 ANOVA of two factors x and z on outcome y
s.size <- 300 # the sample size
p.z <- c(0.25, 0.5, 0.25) # the probabilities of factor z
##