BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

I am new to using SAS, I am trying to run a multi dummy variable regression model as in Heston and Rouwenhorst model. the formula is as follow:

proc reg ;
weight World_MV_TM1;
model return = I0530 I0570 I0580 I1350 I1730 I1750 I1770 I2350 I2710 I2720
I2730 I2750 I2770 I2790 I3350 I3530 I3570 I3720 I3740 I3760 I3780 I4530
I4570 I5330 I5370 I5550 I5750 I6530 I6570 I7530 I7570 I8350 I8530 I8570
I8630 I8670 I8770 I8980 I8990 I9530 I9570 C1 C2 C3 C4 C5 C6 C7 C8 C9 C10
C11 C12 C13 C14 C15 C16 C17 C18 C19 C20 C21 C22 C23 C24 C25 C26 C27 C28
C29 C30 C31 C32 C33 C34 C35 C36 C37 C38 C39 C40 C41 C42 C43 C44 C45 C46;

restrict I0530 + I0570 + I0580 + I1350 + I1730 + I1750 + I1770 + I2350 + I2710 +
I2720 + I2730 + I2750 + I2770 + I2790 + I3350 + I3530 + I3570 + I3720 + I3740 +
I3760 + I3780 + I4530 + I4570 + I5330 + I5370 + I5550 + I5750 + I6530 + I6570 +
I7530 + I7570 + I8350 + I8530 + I8570 + I8630 + I8670 + I8770 + I8980 + I8990 +
I9530 + I9570 = 0;
restrict C1 + C2 + C3 + C4 + C5 + C6 + C7 + C8 + C9 + C10 + C11 + C12 + C13 +
C14 + C15 + C16 + C17 + C18 + C19 + C20 + C21 + C22 + C23 + C24 + C25 + C26 + C27 +
C28 + C29 + C30 + C31 + C32 + C33 + C34 + C35 + C36 + C37 + C38 + C39 + C40 + C41 +
C42 + C43 + C44 + C45 + C46 = 0;

However, the restriction in the Heston and Rouwenhorst require that the sum of (Weight x C[number]) = 0 and sum of (Weight x I[number]) = 0. It seems that I can't put C1*Weight in the restriction due to syntax error. The weight is another variable, which is different from the one used to run WLS. I was wondering if there is any way that i can do this restricition.

Thank you

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 0 replies
  • 522 views
  • 0 likes
  • 1 in conversation