Displaying 20 results from an estimated 1000 matches similar to: "How to still processing despite bug errors?"
2011 Jan 16
1
Hausman Test
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:
library(systemfit)
fit2sls <- systemfit(Y~X1,data=data,method="2SLS",inst=~W)
fitOLS <-
2012 Oct 28
6
Hausman test in R
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 reasons).
And here comes the Hausman test. I know this test is used to identify
endogeneity.
But what I
2011 Jan 16
1
problem installing rgdal
Dear R experts,
I'm trying to install rgdal in my R 2.11.1 (Ubuntu 10.10).
I have as an ouput the following messages. It seems that there are problems
with libgdal1.7.0 or sqlite3...
Could someboby help me?
Thanks a lot!
Ale
> install.packages()
Warning in install.packages() :
argument 'lib' is missing: using '/home/ale/R/i686-pc-linux-gnu-library/2.
11'
trying URL
2005 Dec 02
3
masked from package:base?
I am confused by the following description in
http://www.maths.lth.se/help/R/.R/library/systemfit/html/hausman.systemfit.html
what does the "Not run" mean? if we do not load systemfit, how can we run
the following code?
## Not run: library( systemfit )
data( kmenta )
attach( kmenta )
...
I install the package of systemfit, and run the code.
I got the warning:
> library( systemfit
2004 Nov 29
3
systemfit - SUR
Hello to everyone,
I have 2 problems and would be very pleased if anyone can help me:
1) When I use the package "systemfit" for SUR regressions, I get two
different variance-covariance matrices when I firstly do the SUR
regression ("The covariance matrix of the residuals used for
estimation") and secondly do the OLS regressions. In the manual for
"systemfit" on page
2011 Aug 22
1
rgdal cannot load shared object
Hello,
I'm on a Debian sid system, and after a an upgrade of packages ('apt-get
upgrade') over the weekend, loading rgdal no longer works:
---<--------------------cut here---------------start------------------->---
R> library(rgdal)
Loading required package: sp
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object
2006 Mar 21
0
New version of 'systemfit'
Dear R users,
The authors of the systemfit package have released a new version of this
package with substantial enhancements.
The systemfit package contains functions for fitting simultaneous systems of
linear equations using Ordinary Least Squares (OLS), Weighted Least Squares
(WLS), Seemingly Unrelated Regressions (SUR), Two-Stage Least Squares (2SLS),
Weighted Two-Stage Least Squares
2006 Mar 21
0
New version of 'systemfit'
Dear R users,
The authors of the systemfit package have released a new version of this
package with substantial enhancements.
The systemfit package contains functions for fitting simultaneous systems of
linear equations using Ordinary Least Squares (OLS), Weighted Least Squares
(WLS), Seemingly Unrelated Regressions (SUR), Two-Stage Least Squares (2SLS),
Weighted Two-Stage Least Squares
2011 Jan 16
3
rootogram for normal distributions
Using R-2.12.1 and latticeExtra-0.6-14, I would like to understand
why a rootogram displaying samples from the Poisson distribution looks like I
expected it, whereas a rootogram using the normal distribution does not:
library(latticeExtra)
rootogram(~rpois(1000, lambda = 50), dfun = function(x) dpois(x, lambda = 50))
rootogram(~rnorm(1000), dfun = function(x) dnorm(x,mean(x),sd(x)))
I
2005 May 25
3
Problem with systemfit 0.7-3 and transformed variables
The 'systemfit' function in systemfit 0.7-3 CRAN package seems to have a
problem with formulas that contain transformed (eg. log) variables. If I
have my data in a data frame, apparently systemfit doesn't "pass" the
information of where the variables should be taken to the transforming function.
I'm not entirely sure if this is a bug or just a limitation, I was just
2012 Oct 17
3
Install rgdal, lazy loading error
Hi all,
I have successfully made and installed both gdal, and proj.4, but still
cannot get rgdal to be installed in R. I think i'm very close. I do not
have root access, if that matters, i've installed everything locally. I'm
using debian on a beowulf cluster.
I call:
install.packages("rgdal", .libPaths()[1], configure.args =
2007 Feb 21
0
Problems with obtaining t-tests of regression
Guillermo,
I am dropping most of your mail because my answer is very generic.
First, why doesn't it work as you tried it: technically speaking,
coeftest() and the like expect to be feed an lm or a glm object and for
this reason won't accept the result of systemfit(), which is a much
different object. I suppose the same goes for the rest.
Second, what can you do: I'd do at least one
2007 Feb 20
0
Problems with obtaining t-tests of regression coefficients applying consistent standard errors after run 2SLS estimation. Clearer !!!!!
First I have to say I am sorry because I have not been so clear in my
previous e-mails. I will try to explain clearer what it is my problem.
I have the following model:
lnP=Sc+Ag+Ag2+Var+R+D
In this model the variable Sc is endogenous and the rest are all objective
exogenous variables. I verified that Sc is endogenous through a standard
Hausman test. To determine this I defined before a new
2012 Oct 17
1
extracting and restricting coefficients
Hi
I want to fit two equations simultaneously
EQ1<-Y1~X1+X2
EQ2<-Y2~X1+X2
eqsystem<-list(Y1HAT=EQ1,Y2HAT=EQ2)
fitols<-systemfit(eqsystem,
method="OLS", data=BB)
How do I get coefficients for the first equation? R code
How do I restrict coefficient of X2 in the first equation (say , restrict it to less than zero). R code
Your help is
appreciated.
Dereje
[[alternative
2007 Feb 19
1
Urgent: How to obtain the Consistent Standard Errors after apply 2SLS through tsls() from sem or systemfit("2SLS") without this error message !!!!!!!!!!!!!
Hi,
I am trying to obtain the heteroskedasticity consitent standard errors
(HCSE) after apply 2SLS. I obtain 2SLS through tsls from package sem or
systemfit:
#### tsls ####
library (sem)
Reg2SLS <-tsls(LnP~Sc+Ag+Ag2+Var+R+D,~I2+Ag+Ag2+Var+R+D)
summary (Reg2SLS)
#### systemfit ####
library (systemfit)
RS <- LnP~Sc+Ag+Ag2+Var+R+D
Inst <- ~I2+Ag+Ag2+Var+R+D
labels
2008 Oct 14
1
Advice on Computer Specifications
Hello
I'm running into a variety of limitations with my computer complaining that
it doesn't have sufficient memory. It is a Dell Latitude D630 Duo Core
CPU T7700 @ 2.40 GHz, with 3.50 GB RAM.
I'm working with relatively large dataframes
> dim(AllYears)
returns 4071840 records with 13variables
sometimes this complains that it can not allocate vectors of 16.0 Mb and
will
2013 Apr 01
1
plm: Hausman Test error
Hi, I am trying to run a panel regression using 88 observations and 9
variables. In-built Hausman Test did not work, then I found a code for
auxiliary regression method for the Hausman test.
The panel models are:
fe=plm(gd ~ l+g+o+c+g1+h+n+r, model = "within", data = new.frame,index =
c("id"))
re=plm(gd ~ l+g+o+c+g1+h+n+r, model = "random", data = new.frame,index =
2009 Oct 28
1
New variables "remember" how they were created?
Hello all,
I hope this question is appropriate for this ML.
Basically, I am wondering if when you create a new variable, if the
variable holds some information about how it was created.
Let me explain, I have the following code to replicate an example in a
textbook (Greene's Econometric Analysis), using the systemfit package.
dta <-
2012 Oct 29
1
Hausman test error solve
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,
data=Panel,index=c("id","time"),model="within")
summary(fixed)
fixef(fixed)
random <-plm(ROS ~
2009 May 29
1
Error messages/systemfit package
Hello !
I’m trying to estimate a system of equation (demand and supply) using the systemfit package. My program is:
library(systemfit)
demand <- tsyud ~ tsyud1 + tsucp + tspo + tssn
supply <- tscn ~ tsyn + tsqn + tsksn + tsucp
system <- list(demand=eqdemand, learning = eqsupply)
labels <- list(demand="eqdemand", learning="eqsupply")
inst <- ~ tsupp1 + tsupp2