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) > >

[R] Hausman test

2018-02-11 Thread PAOLO PILI
Hello, I have a problem with Hausman test. I am performing my analysis with these commands: > library(plm) > data<-read.csv2("paolo.csv",header=TRUE) > data< pdata.frame(data,index=c("FIRM","YEAR"),drop.index=TRUE,row.names=TRUE) >

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"

[R] Hausman Test trouble - plm

2015-07-17 Thread TDix
Hi there. I am a student / very fresh R user who is currently having some issues running the procedure for a Hausman test in R. The head for my data sheet named data looks like this: BirdSeason Gully Grouping Food Habitat.Type 1 83 111 0.152

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

[R] Hausman test for Conditional Logit

2015-02-10 Thread Yann le Polain de Waroux
Dear all, I am running a conditional logit model on migration choices using the mclogit package, and I would like to test the independence of irrelevant alternatives (IIA), as it is a restrictive assumption of those models. The mclogit package does not offer the Hausman test, which seems to

[R] Hausman test error solve

2012-10-31 Thread Millo Giovanni
. +39 040 671184 fax +39 040 671160 original message -- Date: Mon, 29 Oct 2012 13:14:09 -0700 (PDT) From: gloria gbus...@smail.uni-koeln.de To: r-help@r-project.org Subject: [R] Hausman test error solve Message-ID: 1351541649650-4647793.p...@n4.nabble.com Content-Type

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

[R] Hausman test error solve

2012-10-29 Thread gloria
Hello, I am trying to conduct a Hausman test to choose between FE estimators and RE estimators. When I try to run: library(plm) fixed - plm(ROS ~ DiffClosenessC +ZZiele + AggSK + nRedundantStrecken + Degree + KantenGew + BetweennessC + SitzKappazitaet,

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

[R] Hausman test in R

2012-10-28 Thread fxen3k
Hi there, I am really new to statistics in R and statistics itself as well. My situation: I ran a lot of OLS regressions with different independent variables. (using the lm() function). After having done that, I know there is endogeneity due to omitted variables. (or perhaps due to any other

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

[R] Hausman test for lmer model

2011-12-19 Thread arunkumar1111
Hi How to perform hausman test when a model is created using lmer ? Also please any one give link to mail it to r-sig-mixed-models mailing list. I'm not able to find it Thanks in advance Arun -- View this message in context:

[R] Hausman Test

2011-01-16 Thread Holger Steinmetz
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 equation). My current approach:

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

[R] Hausman Test

2010-10-25 Thread Amrita Ghosh Dastidar
Hi, I'm trying to conduct a Hausman test to choose between FE estimators and RE estimators. When I run the code, I get an error: Error in solve.default(dvcov) : system is computationally singular: reciprocal condition number = 3.7981e-22 Can someone please help me with this problem? ~ Amrita

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. __

[R] Hausman test for endogeneity

2010-10-09 Thread Holger Steinmetz
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 -- View this message in context: http://r.789695.n4.nabble.com/Hausman-test-for-endogeneity-tp2969522p2969522.html Sent from the R help mailing

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