Displaying 20 results from an estimated 100 matches similar to: "Time Varying Coefficients"
2017 Jun 20
1
How to write an estimated seasonal ARIMA model from R output?
I'm trying to use the following command.
arima (x, order = c(p,d,q), seasonal =list(order=c(P,D,Q), period=s)
How can I write an estimated seasonal ARIMA model from the outputs. To be specifically, which sign to use? I know R uses a different signs from S plus.
Is it correct that the model is:
(1-ar1*B-ar2*B^2-...)(1-sar1*B^s-sar2*B^2s-....)(1-B)^d(1-B^s)^D
2000 Apr 04
0
stochastic process transition probabilities estimation
Hi all,
I'm new with R (and S), and relatively new to statistics (I'm a
computer scientist), so I ask sorry in advance if my question is silly.
My problem is this: I have a (sample of a) discrete time stochastic
process {X_t} and I want to estimate
Pr{ X_t | X_{t-l_1}, X_{t-l_2}, ..., X_{t-l_k} }
where l_1, l_2, ..., l_k are some fixed time lags. It will be enough for
me to compute
2003 Nov 24
3
Bollinger Bands
Is there a way to create Bollinger Bands without having to loop on the
observations of a time serie?
Any help appreciated
Thanks
2007 Feb 21
1
loops in R help me please
I am trying to make the following Kalman filter equations work and therefore produce their graphs.
v_t=y_t - a_t
a_t+1=a_t+K_t*v_t
F_t=P_t+sigma.squared.epsilon
P_t+1=P_t*(1-K_t)+sigma.squared.eta
K_t=P_t/F_t
Given:
a_1=0,P_1=10^7,sigma.squared.epsilon=15099,
sigma.squared.eta=1469.1
I have attached my code,which of course doesnt work.It produces NAs for the Fs,Ks and the a.
Can somebody tell me
2005 Jan 21
2
transfer function estimation
Dear all,
I am trying to write an R function that can estimate Transfer functions *with additive noise* i.e.
Y_t = \delta^-1(B)\omega(B)X_{t-b} + N_t
where B is the backward shift operator, b is the delay and N_t is a noisy component that can be modelled as an ARMA process. The parameters to both the impulse response function and the ARMA noisy component need to be estimated simultaneously.
I
2009 Feb 03
3
Problem about SARMA model forcasting
Hello, Guys:
I'm from China, my English is poor and I'm new to R. The first message I sent to R help meets some problems, so I send again.
Hope that I can get useful suggestions from you warm-hearted guys.
Thanks.
I builded a multiplicative seasonal ARMA model to a series named "cDownRange".
And the order is (1,1)*(0,1)45
The regular AR=1; regular MA=1; seasonal AR=0; seasonal
2003 Apr 09
3
How to count the number of parameters in a function
I have the following function:
Myfunc <- function(var1,var2,.....,varN)
{ .....
}
In the above function I have a variable number of parameters (N>2). How can
I count how many parameters have been entered?
Any help appreciated
Thanks
Arno
2011 May 23
1
predict a MA timeseries
Hi,
could anyone tell me how predict() predicts the new value(s), of a MA(1)
arima-modell.
its really easy to make it with an AR(1), knowing the last term, but how can
i or R know the last error?
It would also help if somebody could tell me how to find the "open" source
of the function predict().
Thanks and sorry for my poor english.
--
View this message in context:
2009 Apr 26
1
simulate arima model
I am new in R.
I can simulate Arma, using Arima.sim
However, I want to simulate an Arima Model. Say (1-B)Zt=5+(1-B)at. I do not
know how to deal with 5 in this model.
Can any one could help me?
Thank you very much!
Regards,
--
View this message in context: http://www.nabble.com/simulate-arima-model-tp23239027p23239027.html
Sent from the R help mailing list archive at Nabble.com.
2003 Dec 11
4
Probelm with read.table
Hi All,
I have the following text file (mytextfile.txt)
738307 527178 714456 557955
#N/A 17.42 6.22 4.73
#N/A 17.3 6.23 4.75
#N/A 17.29 6.17 4.7
#N/A 17.07 6.12 4.6
#N/A 17.27 6.19 4.7
#N/A 17.72 6.4 4.78
#N/A 17.12 6.19 4.75
#N/A 17.07 6.15 4.65
#N/A 17.03 6.07 4.64
#N/A 17.38 6.13 4.7
#N/A 17.38 6.13 4.7
#N/A 17.38 6.13 4.7
#N/A 17.38 6.13 4.7
#N/A
2010 Aug 23
1
Fitting a GARCH model in R
Hi,
I want to fit a mean and variance model jointly.
For example I might want to fit an AR(2)-GARCH(1,1) model i.e.
r_t = constant_term1 + b*r_t-1 + c*r_t-2 + a_t
where a_t = sigma_t*epsilon_t
where sigma^2_t = constant_term2 + p*sigma^2_t-1 + q*a^2_t-1
i.e. R estimates a constant_term1, b, c, constant_term2, p, q
TIA
Aditya
2002 Apr 03
1
arima0 with unusual poly
Dear R People:
Suppose I want to estimate the parameters of the
following AR model:
(1 - phi_1 B - phi_2 B^2 - phi_9 B^9) x_t = a_t
and I want to use the arima0 command from the
ts library.
How would I use the order subcommand, please?
R Version 1.4.1 for Windows.
Thanks!
Sincerely,
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston -
2002 Nov 26
2
URGENT Help required
I've the following problem:
The below function runs a loop with regression analysis and stores F-Stat
in a matrix. When I call the matrix elements (models[i,j]) in the function
I get proper results, but when I try to call the same elements outside the
function the matrix appears to be empty e.g when I call compt inside the
function I get: 5 but when I call it outside I get: 1. This is the
2012 Mar 08
1
Panel models: Fixed effects & random coefficients in plm
Hello,
I am using {plm} to estimate panel models. I want to estimate a model that
includes fixed effects for time and individual, but has a random individual
effect for the coefficient on the independent variable.
That is, I would like to estimate the model:
Y_it = a_i + a_t + B_i * X_it + e_it
Where i denotes individuals, t denotes time, X is my independent variable,
and B (beta) is the
2005 Dec 29
0
calculating recursive sequences
Hi,
I was trying to repeat the estimation of threshold GARCH models from
the book "Analysis of Financial Time Series" by Ruey S. Tsay, and I
was succesfull, but I had to use "for" loop, which is quite slow. The
loop is necessary, since you need to calculate recursive sequence. Is
there a faster way to do this in R, without using loops?
The model is such:
r_t = \mu + \alpha_2
2010 Nov 24
0
Seeking advice on dynamic linear models with matrix state variable.
Hello, fellow R users,
I recently need to estimate a dynamic linear model in the following form:
For the measurement equation:
Y_t = F_t * a_t + v_t
where Y_t is the observation. It is a 1 by q row vector for each t.
F_t is my forecasting variable. It is a 1 by p row vector.
a_t is my state variable. It is a p by q MATRIX of parameters with each column of the matrix being regression
2011 Jun 03
0
Package dlm generates unstable results?
Hi, All,
This is the first time I seriously use this package. However, I am confused that the result is quite unstable. Maybe I wrote something wrong in the code? So could anybody give me some hint? Many thanks.
My test model is really simple.
Y_t = X_t * a_t + noise(V),(no Intercept here)
a_t = a_{t-1} + noise(W)
I first run the following code: (I shall provide data at the end of the
2002 Nov 26
0
scope (was URGENT Help required)
Please use a more meaningful subject. Some might take it as a spam and hit
the delete button.
Objects in the workspace are visible inside functions, but are usually not
directly manipulated inside functions. When you modify an object in the
workspace inside a function, what actually happens is a local copy is made,
reflecting the modifications you made, and leave the one in the workspace
2008 Mar 26
0
recursive multivariate filter with time-varying coefficients
Hi,
I've been searching CRAN and the web for a recursive multivariate
filter with time-varying coefficients.
What I mean is the following:
I have a series of square matrices A_t
an initial value vector y_0
and I need to compute
y_t =A_t%*%y_t-1
As these y_t may diverge quickly and/or lead to underflow problems,
the y_t need to be scaled by eg
y_t =y_t/sum(y_t-1)
Is anyone aware
2008 Aug 02
0
SARIMA Model confrimation
Hi..
R Program is shown ARIMA output as below then SARIMA equation is be
(1 - 0.991B^{12})z_t + 43.557 = (1+0.37B)(1-0,915B^{12})a_t
But I try to calculate it by manual . It look like it 's big different from R sofeware,
I am not sure this equation is correct or not . PLS supoort me to confirm it
Arima Model ( 0,0,1)(1,0,1)
No Transformation
Constant >> 43.557 , t = 10.09