Search found 115 matches

by rbelhach95
Sat Jun 18, 2016 11:06 pm
Forum: Looking for Code?
Topic: Beta-convergence, Sigma-convergence,Club convergence
Replies: 0
Views: 5258

Beta-convergence, Sigma-convergence,Club convergence

Is there a sample RATS code for beta-convergence, sigma-convergence, club convergence that I could use to estimate for "different regions"? I am using RATS 9.0

Thanks
Rachid
by rbelhach95
Tue Feb 10, 2015 12:09 pm
Forum: Help With Programming
Topic: Manipulation of Sums using SSTATS
Replies: 4
Views: 8093

Re: Manipulation of Sums using SSTATS

Many thanks Tom for your useful input, I will try what you suggested.
Rachid
by rbelhach95
Mon Feb 09, 2015 10:05 am
Forum: Help With Programming
Topic: Manipulation of Sums using SSTATS
Replies: 4
Views: 8093

Re: Manipulation of Sums using SSTATS

Many Thanks for your feedback. What you suggested will definitely shorten the time, but the difficulty that I am having is in this part of the code compute goodnobs = %nobs boot entries 1 21 1 goodnobs sstats 1 21 goodsource(entries(t))>>sumof21 As I mentioned in my last post, I have a collection of...
by rbelhach95
Mon Feb 09, 2015 12:40 am
Forum: Help With Programming
Topic: Manipulation of Sums using SSTATS
Replies: 4
Views: 8093

Manipulation of Sums using SSTATS

Dear Tom, I would like to implement the following: Please see the code below. I have R1 returns simulated N=5000 times, my option database consists of 10964 quotations, these quotations are divided into 60 sets of different maturities e.g. I have, T3= 21 days, T3=49 days, T3= 77 day, etc....Below I ...
by rbelhach95
Mon Dec 01, 2014 9:35 am
Forum: Help With Programming
Topic: Root Mean Square Error
Replies: 4
Views: 7312

Re: Root Mean Square Error

I get it, in fact, they don' t match up. Many thanks
Rachid
by rbelhach95
Mon Dec 01, 2014 8:56 am
Forum: Help With Programming
Topic: Root Mean Square Error
Replies: 4
Views: 7312

Re: Root Mean Square Error

Thanks Tom for your inputs. Sorry I wasn't very clear, they are both of the same size MxP. I ran the code but I get error
Thanks
Rachid
by rbelhach95
Mon Dec 01, 2014 2:26 am
Forum: Help With Programming
Topic: Root Mean Square Error
Replies: 4
Views: 7312

Root Mean Square Error

Dear Tom, I would lke to compute RMSE, my observed and focasted matrices are of sizes (M,P), I could compute the RMSE column by column, but I would like to do it for the whole database, is this code correct? Many thanks for your help Rachid source "C:\ Desktop\ uforeerrors.src" do i = 1, M...
by rbelhach95
Tue Nov 25, 2014 5:11 pm
Forum: Help With Programming
Topic: Summing elements of vector series
Replies: 4
Views: 6871

Re: Summing elements of vector series

Thanks a lot Tom
Rachid
by rbelhach95
Tue Nov 25, 2014 11:56 am
Forum: Help With Programming
Topic: Summing elements of vector series
Replies: 4
Views: 6871

Re: Summing elements of vector series

Many thanks for your help. I have the ewise instruction in my code below, how do I loop over those two instruction? I would like sumof12 to be as shown in my code (Rtstr(i,j)) but it gives error. Thanks Rachid com N= 5000, M= 61, P=1000 dec rec T3 ST Call Rtstr Callav dim T3(M,P) Rtstr(M,P) ST(M,P) ...
by rbelhach95
Tue Nov 25, 2014 8:46 am
Forum: Help With Programming
Topic: Summing elements of vector series
Replies: 4
Views: 6871

Summing elements of vector series

Dear Tom, I have a vector series R(rep) of 5000 monthly returns, I used sample(smpl=%valid(R(rep))) R(rep) / goodsource to throw away the NAs. I would like to randomly sum up 12 of these goodsource returns, then replicate this process 61 times, i.e. obtain 61 annual returns Please advise. Thank you ...
by rbelhach95
Tue Oct 14, 2014 8:22 am
Forum: Help With Programming
Topic: Skewness and Kurtosis
Replies: 6
Views: 8647

Re: Skewness and Kurtosis

Thanks for your inputs. my in-sample data has high kurtosis and relatively high negative skeweness, when I generate the returns of my model, I would like to know if I am generating the right numbers by looking at those two measures. I am currently doing it the you have suggested.
Thanks
Rachid
by rbelhach95
Tue Oct 14, 2014 5:58 am
Forum: Help With Programming
Topic: Skewness and Kurtosis
Replies: 6
Views: 8647

Re: Skewness and Kurtosis

Thanks Tom, I have R1(1),...,R1(5000) each of which is a series, and would like to compute the overall skewness and kurtosis of R1 vector series .
Many thanks
Rachid
by rbelhach95
Mon Oct 13, 2014 6:24 pm
Forum: Help With Programming
Topic: Skewness and Kurtosis
Replies: 6
Views: 8647

Re: Skewness and Kurtosis

Many thank , I generated N= 5000 replications for vector series R1, yes, the Statistics instruction can give summary statistics for R1(1), R1(2)...., but I was wondering if you could get summary statistics for all R1. Thanks
Rachid
by rbelhach95
Mon Oct 13, 2014 9:00 am
Forum: Help With Programming
Topic: Skewness and Kurtosis
Replies: 6
Views: 8647

Skewness and Kurtosis

Dear Tom,

Is there a way to compute the skewness and kurtosis of the distribution of simulated returns? The table instruction does not provide these values. Please advise
Rachid
by rbelhach95
Fri Jul 18, 2014 2:26 pm
Forum: Structural Breaks and Switching Models
Topic: Markov switching model
Replies: 2
Views: 6976

Re: Markov switching model

Many thanks Tom. I have changed my data file to xls format and it worked fine.