Displaying 20 results from an estimated 300 matches similar to: "HAC corrected standard errors"
2008 Dec 18
3
Parsing unusual date format
Hello,
If I have a character string like
d <- c("1990m3", "1992m8") #March 1990 and Aug 1992
what is the easiest way to convert it into any standard date form; for
example,
d <- c("01/03/1990", "01/08/1992")
I looked at as.Date but it doesn't seem to address my problem as I have an
"m" stuck in the middle of my character string
2009 Jan 05
3
if statement
Hi,
How do I check for two conditions in an if loop? I want to check if a value
lies between 2 other values.
For example,
A <- ts(rnorm(120), freq=12, start=c(1992,8))
X <- 0.5
Y <- 0.8
I would like to create a new vector C for which C[i] is 0 if A[i] lies in
between X and Y.
Would be grateful for any help. Sorry for asking such an R-newbie question!
Shruthi
--
View this message
2009 Jan 20
2
Confidence intervals in ccf()
Hi,
I have been running the ccf() function to find cross-correlations of time
series across various lags. When I give the option of plot=TRUE, I get a
plot that gives me 95% confidence interval cut-offs (based on sample
covariances) for my cross-correlations at each lag. This gives me a sense of
whether my cross-correlations are statistically significant or not.
However, I am unable to get R to
2009 Feb 03
1
Using getSymbols
Hi,
How can one ask getSymbols to obtain data within a specified time interval?
For example, if I am downloading US PPI data:
usppi <- as.zoo(getSymbols("PPIACO", src="FRED", verbose=TRUE,
auto.assign=FALSE))
How do I ask getSymbols to truncate starting from Jan-1970 until present? I
looked up the help file but couldn't find anything.
Another newbie question, can I
2008 Dec 18
1
For and if confusion
I have two date objects
X <- c("01-03-1993", "01-05-1997") #Mar 1993 and May 1997
Y <- c("01-02-1995", "01-08-1999") #Feb 1995 and Aug 1999
and a time series object
A <- ts(rnorm(120), freq=12, start=c(1992,8)) #Aug 1992 to Aug 2002
I want to create a binary (0-1) vector B that is of length 1:(A).
B should have value 1 for the time periods
2009 Feb 02
1
Beveridge Nelson Decomposition
Hi,
Would anyone know if it is possible to run a Beveridge Nelson decomposition
of a univariate time series object in R? I searched in the help files but
didn't come across any potential methods.
Thanks very much,
Shruthi
--
View this message in context: http://www.nabble.com/Beveridge-Nelson-Decomposition-tp21789452p21789452.html
Sent from the R help mailing list archive at Nabble.com.
2009 Jan 08
1
Convert to as.Date
Hi,
I have an vector object that looks like
DA <- c("1991q1", "1993q2")
(first quarter of 1991 etc) and I want to convert it into a date object
using as.Date(). I did this for montly data but am stumped when it comes to
dealing with quarterly data and as.Date.
Would anyone be able to help? Would be very grateful for any advice, sorry
for being such an R-newbie!
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.
2013 Mar 26
1
Newey West HAC for pooled cross-section data
Hello:
My dataset set contains several thousand rows of data, with each row
containing information for a house. The variables include the sale price of
the house, the quarter and year of sale, the attributes of the house, and
the attributes of the neighborhood and the city in which the house is
located. The data is for a 10-year period. No house is repeated in the
dataset. In summary, the dataset
2011 Jan 22
1
Newey West HAC-errors for panels
Dear all,
I am looking for an equivalent to the "newey2"-extension in Stata, in
order to compute Newey-West HAC standard errors in a regression using
panel data.
I would be very grateful for advice which R-package could do this.
I thank you very much in advance.
Dirius
2020 May 26
2
[ORC JIT][MLIR] GDBRegistrationListener "second attempt to perform debug registration" assert
Referring to the log messages from my previous mail… I confused myself (and probably others) by reading the “Adding MemMgr 0x55555959f440“ message as “Registering MemMgr 0x55555959f440”. Thus the address mismatch made no sense. How could we be registering a `MemMgr` address/key that does not match once we arrive in `notifyObjectLoaded` method?
Answer: Because the registrations is NOT coming
2006 Aug 31
0
Moving Window regressions with corrections for Heteroscedasticity and Autocorrelations(HAC)
# Using Moving/Rolling Windows, here we do an OLS Regression with corrections for #Heteroscedasticity and Autocorrelations (HAC) using Newey West Method. This code is a #extension of Ajay Shah?s code for moving windows simple OLS regression.
# The easiest way to adjust for Autocorrelations and Heteroscedasticity in the OLS residuals is to #use the coeftest function that is included in the
2010 Apr 23
0
HAC and Kmean
Hi there,
is it possible in r to use the Initial partition established by using the
HAC partition with the kmean clustering?
E.g. perform the HCA, write the cluster affiliation in a seperate column
> DF$hclus.label <- assignCluster(model.matrix(~-1 + A15 + B12 + C70 + E14 +
+ H61 + N56 + P48 + T69 + W32 + Y43, DF), DF, cutree(HClust.1, k = 3)
-> use this as initial partition in the
2008 Nov 20
0
A Problem while Calculating Newey-West HAC
Hi,
Does anyone read Verbeek's "A Guide to Modern Econometrics"? In its Section
4.11, how does the last two equations' HAC calculate? I've tried several
groups of parameters in sandwich::NeweyWest, but I still cannot get the same
result. I've tried lag=2 and lag=3, as long as prewhite=FALSE and
prewhite=TRUE yet, but...
Sincerely
Hsiao-nan Cheung
2011 Jan 09
0
Bartlett HAC covariance matrix estimator
Dear everyone:
I am doing a research on several stock markets. And I need to
construct an Bartlett HAC covariance matrix estimator for Sigma(Cov(Y0,Yj)),
j is from 0 to T. Can you tell me how to do it.
Your Sincerely!
Nigel Gregory
01/09/11
[[alternative HTML version deleted]]
2004 Dec 01
1
reg win3.11 client configration
Dear sir,
We are using Rethat linnex 9 with which we got samba 2.2.7a. we are able to connect windows 98 and win xp machines, but the problem is we are not able to connect win 3.11 machines is there any add-on package for connecting win 3.11 clients ( windows workgrops )
with regards
Jayaram Prasad, Sr.Dy.Systems Engineer.
Systems Dept.
Hyderabad.
jayaram
2010 Aug 03
4
REmove level with zero observations
If I have a column with 2 levels, but one level has no remaining
observations. Can I remove the level?
Had intended to do it as listed below, but soon realized that even though
there are no observations, the level is still there.
For instance
summary(dbs3.train.sans.influential.obs$HAC)
yields
0 ,1
4685,0
nlevels(dbs3.train.sans.influential.obs$HAC)
yields
[1] 2
drop.list <- NULL
2020 May 21
2
[ORC JIT][MLIR] GDBRegistrationListener "second attempt to perform debug registration" assert
Hi Adam,
Calls to the listeners should be protected by the RTDyldLayerMutex. Could
you apply the attached patch and share the debugging output from one of the
failing runs?
Regards,
Lang.
On Wed, May 20, 2020 at 8:00 PM David Blaikie <dblaikie at gmail.com> wrote:
> +Lang
>
> On Wed, May 20, 2020 at 4:44 PM Straw, Adam D via llvm-dev <
> llvm-dev at lists.llvm.org>
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]]
2007 Nov 02
10
pre-release version of backgroundrb available now from svn
Hi,
A pre-release version of backgroundrb is available now from svn.
Download it from here:
http://svn.devjavu.com/backgroundrb/branches/version099/
Since this release marks significant migration from existing
practices, i intend to keep trunk untouched for a while.
There are no install scripts, but you should copy "backgroundrb" file
from script directory of plugin to script