Quantcast
Channel: Statistics Help @ Talk Stats Forum - SAS
Viewing all articles
Browse latest Browse all 310

limit data in gplot with macro array

$
0
0
I have a horizontal dataset containing quarterly chargeoff data for various products. Within the dataset variables names are product specific(productA_bal, productA_chgoff, productA_net_chgoff, productB_bal, productB_chgoff, productB_net_chgoff, and so on). I have created a macro array that reads in the product variables(dependent variables) as well as the remaining variables which are the independent variables and subsequently plots each permutation of dependent variable vs. independent variable. See below.

proc gplot data=all;

%do i=1 %to &NUMDEP;
%do j=1 %to &NUMIND;

plot &&DEP&i * &&IND&j; run;

%end;
%end;

The data however is not balanced, so the resulting plots include quarters that do not apply for some products. I would like to selectively adjust the starting quarter or row for each product such that productA variables are plotted against independent variables for 2004Q1 forward and productB variables are plotted for period 2010Q3 forward, for example. Any ideas?

Viewing all articles
Browse latest Browse all 310

Trending Articles