Normalizing returns

Use this forum to post questions about syntax problems or general programming issues. Questions on implementing a particular aspect of econometrics should go in "Econometrics Issues" below.
rachitgupta
Posts: 2
Joined: Mon May 04, 2015 9:59 pm

Normalizing returns

Unread post by rachitgupta »

Hi,

Can anyone please tell me how to normalize returns in RATS. I am not able to find command for that.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Normalizing returns

Unread post by TomDoan »

Could you be more specific? There are at least a half-dozen ways to do that.
rachitgupta
Posts: 2
Joined: Mon May 04, 2015 9:59 pm

Re: Normalizing returns

Unread post by rachitgupta »

I would like to get the z-score of a set of return series. I do not want to use the set command because I have 300 series and I want to be able to use the dofor loop.
Specifically I want for a variable R to get the Z transform as in : Z=(R-Mean)/stdev.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Normalizing returns

Unread post by TomDoan »

What you're looking for is diff(standardize).
Post Reply