Displaying 20 results from an estimated 30000 matches similar to: "R-help Digest"
2012 Sep 26
1
Write table with data in other .csv template
Hi,
I have a table with data, as below:
dput(table):
structure(list(Adrian.Cole = c(0L, 0L, 0L, 0L, 0L, 0L), Alison.Wong =
c(0L, 0L, 0L, 0L, 0L, 0L), Andrei.Savu = c(0L, 0L, 0L, 0L, 0L, 0L),
Bruno.Dumon = c(0L, 0L, 0L, 0L, 0L, 0L), Edward.J..Yoon = c(0L, 0L, 0L,
0L, 0L, 0L), Eugene.Koontz = c(0L, 0L, 0L, 0L, 0L,
0L), Jakob.Homan = c(0L, 0L, 0L, 0L, 0L, 0L), Kelvin.Kakugawa =
c(0L, 0L,
2005 May 20
2
Plot Problem
Hi folks,
I try to plot a variable which contains string-variables. it works, but the
problem is that there are a lot of values at the x axis (up to 24)
SO i have to scale or rotate the label at the x axis.
I tried this with the text() function. It doesn't work correctly.
Is there a simple way to rotate the labels?
Best regards,
Sebastian
2005 Oct 10
1
using innov in arima.sim
Hello,
I have used the arima.sim function to generate a lot of time series, but to day I got som results that I didn't quite understand. Generating two time series z0 and z1 as
eps <- rnorm(n, sd=0.03)
z0 <- arima.sim(list(ar=c(0.9)), n=n, innov=eps)
and
z1 <- arima.sim(list(ar=c(0.9)), n=n, sd=0.03),
I would expect z0 and z1 to be qualitatively similar. However, with n=10 the
2008 Jul 23
1
Time series reliability questions
Hello all,
I have been using R's time series capabilities to perform analysis for quite
some time now and I am having some questions regarding its reliability. In
several cases I have had substantial disagreement between R and other packages
(such as gretl and the commercial EViews package).
I have just encountered another problem and thought I'd post it to the list. In
this case,
2005 Oct 02
2
arima.sim bug?
Hi,
I am using the arima.sim function to generate some AR time series. However, the function does not seem to produce exactly the same time series when I specify the innov parameter. For example
> r <- rnorm(300)
> x <- arima.sim(300, model=list(order=c(1,0,0),ar=c(.96)), innov=r, n.start=10)
> y <- arima.sim(300, model=list(order=c(1,0,0),ar=c(.96)), innov=r, n.start=10)
>
2011 Nov 22
1
arima.sim: innov querry
Apologies for thickness - I'm sure that this operates as documented and with good reason. However...
My understanding of arima.sim() is obviously imperfect. In the example below I assume that x1 and x2 are similar white noise processes with a mean of 5 and a standard deviation of 1. I thought x3 should be an AR1 process but still have a mean of 5 and a sd of 1. Why does x3 have a mean of ~7?
2003 Aug 14
1
filter ARMA process
Hi
given an ARMA process and the AR and MA coefficients I need the residuals.
arima() calculates the residuals together with the best AR and MA
coefficients, but I need the coefficients to take known values.
In S-PLUS there is a function arima.filt(). Is there something similar in
R?
Thanks for any help,
Matthias Budinger
2011 Jul 07
3
AR vs ARIMA question
Dear R People:
Here is some output from AR and ARIMA functions:
> xb <- arima.sim(n=120,model=list(ar=0.85))
> xb.ar <- ar(xb)
> xb.ar
Call:
ar(x = xb)
Coefficients:
1
0.6642
Order selected 1 sigma^2 estimated as 1.094
> xb.arima <- arima(xb,order=c(1,0,0),include.mean=FALSE)
> xb.arima
Call:
arima(x = xb, order = c(1, 0, 0), include.mean = FALSE)
2013 Mar 30
1
vcovHC and arima() output
Dear all,
how can I use vcovHC() to get robust/corrected standard errors from an
arima() output?
I ran an arima model with AR(1) and got the estimate, se, zvalue and
p-value using coeftest(arima.output).
However, I cannot use vcovHC(arima.output) to get corrected standard
errors. It seems vcovHC works only with lm and plm objects?
Is there another way I can get robust/corrected
2005 Mar 31
2
how to simulate a time series
Dear useRs,
I want to simulate a time series (stationary; the distribution of
values is skewed to the right; quite a few ARMA absolute standardized
residuals above 2 - about 8% of them). Is this the right way to do it?
#--------------------------------
load("rdtb") #the time series
> summary(rdtb)
Min. 1st Qu. Median Mean 3rd Qu. Max.
-1.11800 -0.65010 -0.09091
2004 Jan 14
2
Fixed parameters in an AR (or arima) model
Hello
I want to fit an AR model were two of the coefficients are fixed to zero
(the second and third ar-coefficients).
I used the "arima" function with the "fixed" argument but the ar3
coefficient is not set to zero:
==============================================
> arima(Y, order=c(4,0,0), xreg=1:23, fixed=c(NA,0,0,NA,NA,NA))
Call:
arima(x = Y, order = c(4, 0, 0), xreg =
2008 Nov 27
1
"xreg" in ARIMA modelling.
Hello,
Does anyone know how the parameter estimates are calculated for xreg
variables when called as part of an arima() command, or know of any
literature that provides this info? In particular, I was wondering if there
is a quick way to compare different combinations of "xreg" variables in the
arima() fit in the same way that you would in multiple regression (using AIC
& R^2
2005 Jul 28
1
stl()
Hello, anyone got an idea on how to use stl() so that the remainder eventually
becomes white noise? i used stl repeatedly but there is autocorrelation in
the remainder that i can't get rid of.
os: linux suse9.3
------------------------------------------------
Sebastian Leuzinger
Institute of Botany, University of Basel
Sch??nbeinstr. 6 CH-4056 Basel
ph 0041 (0) 61 2673511
fax 0041 (0)
2003 Dec 08
2
test for arima coef's significancy
Dear sirs,
I would like to know if there is a function to compute the pvalue for the
significancy of arima coef in an arima object created by
the arima function.
I have written this one:
pvalueArima<-function(x,arima)
{
t<-(arima$coef)/(diag(arima$var.coef)^0.5)
df<-length(x)-length(arima$coef)
1-pt(t,df)
}
Has somebody already implemented something equivalent ?
thank you for your
2011 Aug 30
2
ARMA show different result between eview and R
When I do ARMA(2,2) using one lag of LCPIH data
This is eview result
>
> *Dependent Variable: DLCPIH
> **Method: Least Squares
> **Date: 08/12/11 Time: 12:44
> **Sample (adjusted): 1970Q2 2010Q2
> **Included observations: 161 after adjustments
> **Convergence achieved after 14 iterations
> **MA Backcast: 1969Q4 1970Q1
> **
> **Variable Coefficient Std.
2009 Jun 22
2
p-values for ARIMA coefficients
Hi,
I'm a beginner using R and I'm modeling a time series with ARIMA.
I'm looking for a way to determine the p-values of the coefficients of my model.
Does ARIMA function return these values? or is there a way to determine them easily?
Thanks for your answer
Myriam
2023 Jan 05
1
R 'arima' discrepancies
Rob J Hyndman gives great explanation here
(https://robjhyndman.com/hyndsight/estimation/) for reasons why results
from R's arima may differ from other softwares.
@iacobus, to cite one, 'Major discrepancies between R and Stata for
ARIMA'
(https://stackoverflow.com/questions/22443395/major-discrepancies-between-r-and-stata-for-arima),
assign the, sometimes, big diferences from R
2003 Apr 21
2
Anyone Familiar with Using arima function with exogenous variables?
I've posted this before but have not been able to locate what I'm doing
wrong. I cannot determine how the forecast is made using the estimated
coefficients from a simple AR(2) model when there is an exogenous
variable. Does anyone know what the problem is? The help file for arima
doesn't show the model with any exogenous variables. I haven't been able
to locate any documents
2008 Oct 18
1
ARIMA - h-step ahead errors
Dear colleagues,
?arima? returns directly the 1-step ahead errors but I am interested in
obtaining other h-step ahead errors for several ARIMA models I have
fitted. Is there any way I can obtain this with R? Any help would be
appreciated.
Sincerely,
Nuno Prista
_________________________
CO - FCUL, Lisboa, Portugal
CQFE - ODU, Norfolk, USA
2008 Oct 28
1
Fixing an only one coefficient in an ARIMA model
Good afternoon,
I would like fitting an ARIMA model without the first coefficient.
For example, I want to fit an AR(3) like this :
y[t]=a[1]*y[t-1]+a[2]*y[t-2]+a[3]*y[t-3], where a[1]=0.
How can I specify it in the function "arima", if it is possible ?
Thank you in advance.
Yohann Moreau
[[alternative HTML version deleted]]