Displaying 20 results from an estimated 6000 matches similar to: "time series and regions of change"
2010 Oct 13
1
robust standard errors for panel data
Hi,
I would like to estimate a panel model (small N large T, fixed effects),
but would need "robust" standard errors for that. In particular, I am
worried about potential serial correlation for a given individual (not so
much about correlation in the cross section).
>From the documentation, it looks as if the vcovHC that comes with plm
does not seem to do autocorrelation, and the
2011 Sep 28
1
Robust covariance matrix with NeweyWest()
Dear R-users,
I would like to compute a robust covariance matrix of two series of realizations of random variables:
###Begin Example###
data <- cbind(rnorm(100), rnorm(100))
model <- lm(data ~ 1)
vcov(model)
library(sandwich)
NeweyWest(model) #produces an error
###End Example###
NeweyWest() produces an error but sandwich(), vcovHAC(), kernHAC, weave(),... do not produce any errors. It
2009 Jun 26
1
Heteroskedasticity and Autocorrelation in SemiPar package
Hi all,
Does anyone know how to report heteroskedasticity and autocorrelation-consistent standard errors when using the "spm" command in SemiPar package? Suppose the original command is
sp1<-spm(y~x1+x2+f(x3), random=~1,group=id)
Any suggestion would be greatly appreciated.
Thanks,
Susan
[[alternative HTML version deleted]]
2009 Dec 08
1
Serial Correlation in panel data regression
Dear R users,
I have a question here
library(AER)
library(plm)
library(sandwich)
## take the following data
data("Gasoline", package="plm")
Gasoline$f.year=as.factor(Gasoline$year)
Now I run the following regression
rhs <- "-1 + f.year + lincomep+lrpmg+lcarpcap"
m1<- lm(as.formula(paste("lgaspcar ~", rhs)), data=Gasoline)
###Now I want to find the
2010 Dec 06
1
waldtest and nested models - poolability (parameter stability)
Dear All,
I'm trying to use waldtest to test poolability (parameter stability) between
two logistic regressions. Because I need to use robust standard errors
(using sandwich), I cannot use anova. anova has no problems running the
test, but waldtest does, indipendently of specifying vcov or not. waldtest
does not appear to see that my models are nested. H0 in my case is the the
vector of
2009 Mar 03
2
latex output of regressions with standardized regression coefficients and t-statistics based on Huber-White
Hello,
first of all: I'm new to R and have only used SPSS befor this (which
can't do this at all...).
I'm trying to output some regression results to latex. The regressions
are normal OLS and I'm trying to output the results with standardized
regression coefficients and t-statistics based on "Huber-White sandwich
estimator for variance". The final result should be
2010 Oct 14
1
robust standard errors for panel data - corrigendum
Hello again Max. A correction to my response from yesterday. Things were better than they seemed.
I thought it over, checked Arellano's panel book and Driscoll and Kraay (Rev. Econ. Stud. 1998) and finally realized that vcovSCC does what you want: in fact, despite being born primarily for dealing with cross-sectional correlation, 'SCC' standard errors are robust to "both
2004 Aug 12
0
"new" package sandwich 0.1-3
Dear useRs,
here is the announcement for the next "new" package:
sandwich 0.1-3.
sandwich provides heteroskedasticity (and autocorrelation)
consistent covariance matrix estimators (also called HC
and HAC estimators).
The former are implemented in the function vcovHC() (which
was available in strucchange before - and independently
in hccm() in John Fox's car package).
And the
2004 Aug 12
0
"new" package sandwich 0.1-3
Dear useRs,
here is the announcement for the next "new" package:
sandwich 0.1-3.
sandwich provides heteroskedasticity (and autocorrelation)
consistent covariance matrix estimators (also called HC
and HAC estimators).
The former are implemented in the function vcovHC() (which
was available in strucchange before - and independently
in hccm() in John Fox's car package).
And the
2006 Jul 04
2
Robust standard errors in logistic regression
I am trying to get robust standard errors in a logistic regression. Is there
any way to do it, either in car or in MASS?
Thanks for the help,
Celso
[[alternative HTML version deleted]]
2006 Dec 24
1
extend summary.lm for hccm?
dear R experts:
I wonder whether it is possible to extend the summary method for the
lm function, so that it uses an option "hccm" (well, model "hc0"). In
my line of work, it is pretty much required in reporting of almost all
linear regressions these days, which means that it would be very nice
not to have to manually library car, then sqrt the diagonal, and
recompute
2007 Sep 08
1
statistical tests under serial dependence
Hello!
I would like to know if there are already programmed statistical tests
for data under serial dependence, for example, considering the variance
inflation factor?
Thank you very much
Best regards
Rosa
2007 Nov 09
1
White's test again
Hi all,
It seems that I can get White's (HC3) test using MASS. The syntax I
used for the particular problem is
anova(scireg3, white.adjust="hc3")
where scireg3 is an object from the lm function. But, the anova summary
table is all I get. I don't get the new estimates or standard errors
correcting for heteroskedasticity. Is there a way to get that information?
Thanks
2011 Feb 16
1
VAR with HAC
Hello,
I would like to estimate a VAR model with HAC corrected standard errors. I tried to do this by using the sandwich package, for example:
> library(vars)
> data(Canada)
> myvar = VAR(Canada, p = 2, type = "const")
> coeftest(myvar, vcov = vcovHAC)
Error in umat - res : non-conformable arrays
Which suggests that this function is not compatible with the VAR command.
2008 Sep 04
2
Correct for heteroscedasticity using car package
Dear all,
Sorry if this is too obvious.
I am trying to fit my multiple regression model using lm()
Before starting model simplification using step() I checked whether the
model presented heteroscedasticity with ncv.test() from the CAR package.
It presents it.
I want to correct for it, I used hccm() from the CAR package as well and
got the Heteroscedasticity-Corrected Covariance Matrix.
I am not
2007 Oct 26
1
Newey-West and SUR regression models
Is anyone aware of a procedure to apply Newey-West corrections for
autocorrelation to a SUR regression model? The SANDWICH package seems to be
applicable only to LM or GLM models.
Thanks,
Richard Saba
Department of Economics
Auburn University
Email: sabaric at auburn.edu
2010 Dec 27
0
Heteroskedasticity and autocorrelation of residuals
Hello everyone,
I'm working on a current linear model Y = a0 + a1* X1 + ... + a7*X7 +
residuals. And I know that this model presents both heteroskedasticity
(tried Breusch-Pagan test and White test) and residuals autocorrelation
(using Durbin Watson test). Ultimately, this model being meant to be used
for predictions, I would like to be able to remove this heteroskedasticity
and residuals
2011 Jul 29
2
'breackpoints' (package 'strucchange'): 2 blocking error messages when using for multiple regression model testing
Good morning to all,
I am encountering a blocking issue when using the function 'breackpoints'
from package 'strucchange'.
*Context:*
I use a data frame, 248 observations of 5 variables, no NA.
I compute a linear model, as y~x1+...+x4
x4 is a dummy variable (0 or 1).
I want to check this model for structural changes.
*Process & issues:*
*First, I used function Fstats.* It
2011 Jan 01
2
robust standard error of an estimator
Hi,
I have ove the robust standard error of an estimator but I don't know how to
do this.
The code for my regression is the following:
reg<-lm(fsn~lctot)
But then what do I need to do?
--
Charlène Lisa Cosandier
[[alternative HTML version deleted]]
2006 Dec 27
2
proposal: allowing alternative variance estimators in glm/lm
There has been recent discussion about alternatives to the model-based
standard error estimators for lm. While some people like the sandwich
estimator and others don't, it is clear that neither estimator dominates
the other for any sane loss function. It is also worth noting that the
sandwich estimator is the default for t.test().
I think it would be useful for models using other