BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Hanyu
Fluorite | Level 6

I want to estimate a ARFIMA model of realised volatility using real series (not simulated ones) . Here is my code.

proc iml;

use square;

read var{square}into exper ;

lag=(0:5);

d=0.4;

phi=0.5;

ma=0.3;

sigma=0.06;

call farmafit(d,phi,ma,sigma,exper);

Sas generate a error saying insufficient number of observations. I have 787 observation for this time series.

Anybody know why? Thank you in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

My guess is that you don't have 787 observations. You have 1 (which is certainly insufficient). Print the number of rows for expe like thisr:

print "number of rows=" (nrow(exper));

You might also try the following example and report what happens:

proc iml;

use sashelp.air;

read all var{air} into exper;

close sashelp.air;

call farmafit(d,phi,ma,sigma,exper);

print d, phi, ma, sigma;

View solution in original post

5 REPLIES 5
Rick_SAS
SAS Super FREQ

My guess is that you don't have 787 observations. You have 1 (which is certainly insufficient). Print the number of rows for expe like thisr:

print "number of rows=" (nrow(exper));

You might also try the following example and report what happens:

proc iml;

use sashelp.air;

read all var{air} into exper;

close sashelp.air;

call farmafit(d,phi,ma,sigma,exper);

print d, phi, ma, sigma;

Hanyu
Fluorite | Level 6

Thank you for your response. I have tried print "number of rows=" (nrow(exper)); using sashelp.air;

The return number is 144. The estimation of the ARFIMA on sashelp.air reports d=1.15 phi ma don't exist. sigma=1118.

Rick_SAS
SAS Super FREQ

I meant for you to print the number of rows for your example, not for mine.

Hanyu
Fluorite | Level 6

I will post it tomorrow if that is okay for you as it is pretty late in UK.

Hanyu
Fluorite | Level 6

Thank you so much Rick. I have solved my issue. Unfortunately there is no long memory feature of my series.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

From The DO Loop
Want more? Visit our blog for more articles like these.
Discussion stats
  • 5 replies
  • 1228 views
  • 1 like
  • 2 in conversation