Displaying 10 results from an estimated 10 matches for "w_t".
Did you mean:
_t
2010 Oct 06
1
dlm package: how to specify state space model?
Dear r-users!
I have another question regarding the dlm package and I would be very
happy if someone could give me a hint!
I am using the dlm package to get estimates for an endogenous rate of
capacity utilization over time. The general form of a state space model
is
(1) b_t = G * b_t-1 + w_t w_t ~ N(0,W)
(2) y_t= A' * x_t + H' * b_t + v_t v_t ~ N(0,V)
(Hamilton 1984: 372)
The investment function I would like to use for estimating my endogenous
capacity utilization rate looks like
(3) g_t = x[1] + x[2]*(u_t-un_t) + x[3]*r + v_t
where g_t is the investment rate, r_t i...
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.
2010 Sep 28
0
Time invariant coefficients in a time varying coefficients model using dlm package
Dear R-users,
I am trying to estimate a state space model of the form
(1) b_t = G * b_t-1 + w_t w_t ~ N(0,W)
(2) y_t= A' * x_t + H' * b_t + v_t v_t ~ N(0,V)
(Hamilton 1984: 372)
In particular my estimation in state space form looks like
(3) a3_t = 1 * a3_t-1 + w_t w_t ~ N(0,W)
(4) g_t = (a1, a2) * (1, P_t)' + u_t * a3_t + v_t v_t ~ N(0,V)
where g_t is the inve...
2005 Dec 14
1
Kalman Filter Forecast using 'SSPIR'
Dear R Users,
I am new to state-space modeling. I am using SSPIR
package for Kalman Filter. I have a data set containing one dependent
variable and 7 independent variables with 250 data points. I want to use
Kalman Filter for forecast the future values of the dependent variable
using a multiple regression framework. I have used ssm function to
produce the state space (SS)
2007 Nov 24
0
Help on State-space modeling
...got to the function ss on the
library sspir. From what I
understood this function is similar to SsfFit from S-PLUS. But for my models
purpose there is something
left to be desired. Its formulation follow these equations:
*Y_t = F_t^T * theta_t + v_t, v_t ~ N(0,V_t)*
*theta_t = G_t * theta_{t-1} + w_t, w_t ~ N(0,W_t)*
Actually I wanted to add these two functions (-logA and a)
Y(t) = -log(A(t))/tau + (B(t)/tau) * X(t) + Error (measurement equation)
X(t) = a(t) + b(t) * X(t-1) + Error (Transition
Equation)
Have anyone tried something like that?
Best regards,
Bernardo...
2008 May 07
1
dlm with constant terms
Hi,
I am trying to figure how to use dlm with constant terms
(possibly time-dependent) added to both equations
y_t = c_t + F_t\theta_t + v_t
\theta_t = d_t + G_t\theta_{t-1} + w_t,
in the way that S-PLUS Finmetrics does?
Is there any straightforward way to transform the above to
the default setup?
Thanks,
Tsvetan
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confident...
2009 Feb 15
0
Kalman Filter - dlm package
Dear all,
I am currently trying to use the "dlm" package for Kalman filtering.
My model is very simple:
Y_t = F'_t Theta_t + v_t
Theta_t = G_t Theta_t-1 + w_t
v_t ~ N(0,V_t) = N(0,V)
w_t ~ N(0,W_t) = N(0,W)
Y_ t is a univariate time series (1x1)
F_t is a vector of factor returns (Kx1)
Theta_t is the state vector (Kx1)
G_t is the identity matrix
My first challenge is to get the Maximum Likelihood estimators of V and W
assuming they are tim...
2013 May 09
0
ARMA(p,q) prediction with pre-determined coefficients
I have the following time series model for prediction purposes
*Loss_t = b1* Loss_(t-1) + b2*GDP_t + b3*W_(t-1)* where W_t is the
usual white noise variable.
So this is similar to ARMA(1,1) except that it also contains an extra
predictor, GDP at time t.
I have only 20 observations on each variable except GDP for which I know
till 100 values.
And most importantly,I have also calculated the coefficients in some way
(t...
2006 Apr 29
1
SSPIR problem
I am having a problem with the package SSPIR. The code below
illustrates it. I keep getting the message: "Error in y - f :
non-conformable arrays."
I tried to tweak the code below in many different ways, for example,
substituting rbind for cbind, and sometimes I get a different error
message, but I could not find a variation of this code that would
work.
Any help will be greatly
2012 Mar 25
2
avoiding for loops
I have data that looks like this:
> df1
group id
1 red A
2 red B
3 red C
4 blue D
5 blue E
6 blue F
I want a list of the groups containing vectors with the ids. I am
avoiding subset(), as it is
only recommended for interactive use. Here's what I have so far:
df1 <- data.frame(group=c("red", "red", "red", "blue",