Re: [R] Hausman test

2018-02-11 Thread David Winsemius
> On Feb 11, 2018, at 8:29 AM, PAOLO PILI wrote: > > you are right about the 3rd line but it doesn't help me for my problem. I > remove the 3rd line but there is still the same problem: > > Error in solve.default (dvcov): > the system is numerically unique:

Re: [R] Hausman test

2018-02-11 Thread PAOLO PILI
you are right about the 3rd line but it doesn't help me for my problem. I remove the 3rd line but there is still the same problem: Error in solve.default (dvcov): the system is numerically unique: reciprocity condition value = 1.63418e-19 Paolo 2018-02-11 16:54 GMT+01:00 Bert Gunter

Re: [R] Hausman test

2018-02-11 Thread Bert Gunter
Note the typo in your 3rd line: data < Don't know if this means anything... Bert On Feb 11, 2018 7:33 AM, "PAOLO PILI" wrote: > Hello, > > I have a problem with Hausman test. I am performing my analysis with these > commands: > > > library(plm) > >

Re: [R] Hausman Test

2016-09-13 Thread Achim Zeileis
On Mon, 12 Sep 2016, Ding, Jie Ding (NIH/NIA/ERP) [F] wrote: Dear Achim, Sorry to have disturbed you. I have encountered a problem when computing Hausman test statistics (i.e. p values) in R to compare OLS and 2SLS models. The problem is a discrepancy between the two p-value outputs from

Re: [R] Hausman Test

2016-09-12 Thread Ding, Jie Ding (NIH/NIA/ERP) [F]
Dear Achim, Sorry to have disturbed you. I have encountered a problem when computing Hausman test statistics (i.e. p values) in R to compare OLS and 2SLS models. The problem is a discrepancy between the two p-value outputs from the "manual approach (by hand)" and the " diagnostics argument"

Re: [R] Hausman Test trouble - plm

2015-07-17 Thread TDix
Might have just solved my own problem team! I assumed that the issue here was the replicated samples, and so added a column and gave a number to each replicate. R seemed to like this and was happy to run the test! A significant result tells me that the fixed effects model is the most preferable

Re: [R] Hausman test in R

2012-10-29 Thread Millo Giovanni
, and 13 for the R implementation. Best wishes, Giovanni -- original message Date: Sun, 28 Oct 2012 16:03:43 -0700 From: Joshua Wiley jwiley.ps...@gmail.com To: fxen3k f.seha...@gmail.com Cc: r-help@r-project.org Subject: Re: [R] Hausman test in R Message-ID

Re: [R] Hausman test in R

2012-10-29 Thread fxen3k
Given my acknowledged statistical ignorance, I tried to find a *solution *in this forum... And this is not primarily a statistical issue, it is an issue about the Hausman test in the R environment. I cannot imagine, no one in this forum has ever done a Hausman test on OLS regressions. I read in

Re: [R] Hausman test in R

2012-10-29 Thread John C Frain
On 29 October 2012 16:56, fxen3k f.seha...@gmail.com wrote: snip If we are talking about the same test a Hausman test can not be applied to OLS regressions. As you have already been told you must have two estimates of the same set of coefficients to do a Hausman test. Suppose that you do OLS

Re: [R] Hausman test in R

2012-10-29 Thread fxen3k
Thanks for your answer, John! Having read in Wooldridge, Verbeek and Hausman himself, I tried to figure out how this whole Hausman test works. I tried to figure out, if endogeneity exists in my particular case. So I did this Y ~ X + Z + Rest + error term [# this is the the original regression

Re: [R] Hausman test in R

2012-10-28 Thread Bert Gunter
1. These are primarily statistics issues, not R issues. You should post on a statistical help list like stats.stackexchange.com, not here. 2. However, given your acknowledged statistical ignorance, you may be asking for trouble. I suggest you seek help from a local statistical expert to get you

Re: [R] Hausman test in R

2012-10-28 Thread Joshua Wiley
Hi, I can think of no reason a Hausman test could not be used for OLS---it is a comparison of vectors of coefficients from different models usually assumed to produce similar estimates under certain conditions. Dissimilarity is taken as indicative of a lack of some or all the conditions required

Re: [R] Hausman Test

2011-01-16 Thread Achim Zeileis
On Sun, 16 Jan 2011, Holger Steinmetz wrote: Hi, can anybody tell me how the Hausman test for endogenty works? I have a simulated model with three correlated predictors (X1-X3). I also have an instrument W for X1 Now I want to test for endogeneity of X1 (i.e., when I omit X2 and X3 from the

Re: [R] Hausman Test

2011-01-16 Thread Holger Steinmetz
Dear Achim, thank you very much. One follow up question. The Hausman-test always gives me a p-value of 1 - no matter how small the statistic is. I now generated orthogonal regressors (X1-X3) and the test gives me Hausman specification test for consistency of the 3SLS estimation

Re: [R] Hausman Test

2011-01-16 Thread Arne Henningsen
Hi Holger! On 16 January 2011 15:53, Holger Steinmetz holger.steinm...@web.de wrote: One follow up question. The Hausman-test always gives me a p-value of 1 - no matter how small the statistic is. I now generated orthogonal regressors (X1-X3) and the test gives me        Hausman

Re: [R] Hausman Test

2011-01-16 Thread Achim Zeileis
On Sun, 16 Jan 2011, Holger Steinmetz wrote: Dear Achim, thank you very much. One follow up question. The Hausman-test always gives me a p-value of 1 - no matter how small the statistic is. I now generated orthogonal regressors (X1-X3) and the test gives me Hausman specification

Re: [R] Hausman Test

2011-01-16 Thread Achim Zeileis
On Sun, 16 Jan 2011, Arne Henningsen wrote: Hi Holger! On 16 January 2011 15:53, Holger Steinmetz holger.steinm...@web.de wrote: One follow up question. The Hausman-test always gives me a p-value of 1 - no matter how small the statistic is. I now generated orthogonal regressors (X1-X3) and

Re: [R] Hausman Test

2011-01-16 Thread Arne Henningsen
Hi Achim! On 16 January 2011 16:37, Achim Zeileis achim.zeil...@uibk.ac.at wrote: Arne: Unless I'm missing something, hausman.systemfit() essentially does the right thing and computes the right statistic and p-value (see my other mail to Holger). Maybe some preliminary check on the input

Re: [R] Hausman Test

2011-01-16 Thread Holger Steinmetz
Thank you both very much ! This helped me a lot. Best, Holger -- View this message in context: http://r.789695.n4.nabble.com/Hausman-Test-tp3220016p3220123.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

Re: [R] Hausman test for endogeneity

2010-10-11 Thread Bert Gunter
... and, in fact, simply googling on R Package Hausmann finds two Hausmann test functions in 2 different packages within the first half dozen hits. -- Bert On Sat, Oct 9, 2010 at 11:06 AM, Liviu Andronic landronim...@gmail.com wrote: Hello On Sat, Oct 9, 2010 at 2:37 PM, Holger Steinmetz

Re: [R] Hausman test for endogeneity

2010-10-10 Thread Holger Steinmetz
Dear Liviu, thank you very much. After inspecting the options, I *guess* that systemfit is what I need. However, I absolutely don't understand how it works. I searched long for a detailed documentation (beyond the rather cryptic standard documentation) but found none. Has anybody

Re: [R] Hausman test for endogeneity

2010-10-10 Thread Arne Henningsen
Hi Holger On 10 October 2010 15:36, Holger Steinmetz holger.steinm...@web.de wrote: After inspecting the options, I *guess* that systemfit is what I need. However, I absolutely don't understand how it works. I searched long for a detailed documentation (beyond the rather cryptic standard

Re: [R] Hausman test for endogeneity

2010-10-10 Thread Holger Steinmetz
Dear Arne, this looks promising! Thank you very much. Best, Holger -- View this message in context: http://r.789695.n4.nabble.com/Hausman-test-for-endogeneity-tp2969522p2970564.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] Hausman test for endogeneity

2010-10-09 Thread Giuseppe Marinelli
On Saturday 09 October 2010 14:37:35 Holger Steinmetz wrote: Dear folks, can anybody point me in the right direction on how to conduct a hausman test for endogeneity in simultanous equation models? Best, Holger hausman.systemfit [1] should be what you are looking for. Cheers Giuseppe [1]

Re: [R] Hausman test for endogeneity

2010-10-09 Thread Liviu Andronic
Hello On Sat, Oct 9, 2010 at 2:37 PM, Holger Steinmetz holger.steinm...@web.de wrote: can anybody point me in the right direction on how to conduct a hausman test for endogeneity in simultanous equation models? Try install.packages('sos') require(sos) findFn('hausman') Here I get these