Search found 5 matches
- Fri Nov 02, 2007 9:24 pm
- Forum: CATS Questions
- Topic: Simulating a CATS model
- Replies: 1
- Views: 13261
Simulating a CATS model
Hi, I try to simulate data from a CATS model as the following. However, only the first round it works. When it goes to the second round, the SIMULATE commend will return an error saying "## SR6. Missing a Necessary Parameter. Check Instruction Syntax" I am lost. Thanks for any possible com...
- Sat Oct 27, 2007 11:12 pm
- Forum: Help With Programming
- Topic: How to transform a matrix into a vector[series] variable
- Replies: 1
- Views: 9629
How to transform a matrix into a vector[series] variable
Hi, I have a matrix [rectangular matrix], A. I want to treat each column as a series, and transform A into a vec[ser] variable C. I encounter a problem that can be represented by the following code: dec rec A(3,2) comp A=||1,2|3,4|5,6|| dec vec[series] C do i=1,2 do j=1,3 gset C(i) j j = A(j,i) end ...
- Sat Oct 27, 2007 7:10 am
- Forum: Help With Programming
- Topic: Failure at stacking two matrices....
- Replies: 2
- Views: 10593
- Sat Oct 27, 2007 4:33 am
- Forum: State Space Models/DSGE
- Topic: Simulating data series using DLM
- Replies: 1
- Views: 8261
Simulating data series using DLM
Hi, I want to simulate a data series of Y that follows a state-space model: Y=PI*S S=M*S{1}+G*e, where e has a identity variance-covariance matrix. I want RATS to start from S(0) as a zero vector, and simulate a Y data series. Here is what my program is and the outcome. But my simulated Y series is ...
- Mon Oct 22, 2007 7:25 am
- Forum: Help With Programming
- Topic: Failure at stacking two matrices....
- Replies: 2
- Views: 10593
Failure at stacking two matrices....
Trying to stack two matrices into one, but no success for days. Can anyone help me to see which part goes wrong? Thanks. Here is my program and output: [1] DISP TR(ALPHAORT) 0.97456 0.22411 9.39326e-04 0.00000 0.01159 -0.05039 0.00239 0.99866 [2] DISP TR(%ALPHA1)*INV(OMEGA) 6662.33384 -27012.07346 -...