Hi there,
I'm trying to generate a scatterplot matrix using ODS in Proc Corr.
Works fine except that not all the variables appear in the matrix. It
seems capped at 5X5 when it should appear as a 9X9 matrix. From the
code below the scatterplot matrix that is generated by ODS includes
only (a_GLUCOSE_0, c_AMYLOID, e_CRP, f_HDL, g_INSULIN_0) however the
PROC CORR output includes all 9 variables...
ODS GRAPHICS ON;
PROC CORR DATA=MERGED PLOTS=scatter(ellipse=none) ;
VAR a_GLUCOSE_0
c_AMYLOID
e_CRP
f_HDL
g_INSULIN_0
h_LDL
i_TG
j_VDBP
k_VITD25 ;
TITLE 'Correlation calculations using PROC CORR';
RUN;
ODS GRAPHICS OFF;
any suggestions? Am I missing something?
thank you.
|
|
0
|
|
|
|
Reply
|
parora180 (1)
|
3/26/2010 2:59:42 PM |
|
On Mar 26, 10:59=A0am, Paul <parora...@gmail.com> wrote:
> Hi there,
>
> I'm trying to generate a scatterplot matrix using ODS in Proc Corr.
> Works fine except that not all the variables appear in the matrix. It
> seems capped at 5X5 when it should appear as a 9X9 matrix. From the
> code below the scatterplot matrix that is generated by ODS includes
> only (a_GLUCOSE_0, c_AMYLOID, e_CRP, f_HDL, g_INSULIN_0) however the
> PROC CORR output includes all 9 variables...
>
> ODS GRAPHICS ON;
> PROC CORR DATA=3DMERGED PLOTS=3Dscatter(ellipse=3Dnone) ;
> =A0 =A0 =A0 VAR =A0 a_GLUCOSE_0
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 c_AMYLOID
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 e_CRP
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 f_HDL
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 g_INSULIN_0
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 h_LDL
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 i_TG
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 j_VDBP
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 k_VITD25 ;
> TITLE 'Correlation calculations using PROC CORR';
> RUN;
> ODS GRAPHICS OFF;
>
> any suggestions? Am I missing something?
>
> thank you.
You need to look up and then use the NVAR and NWITH options.
--
Paige Miller
paige\dot\miller \at\ kodak\dot\com
|
|
0
|
|
|
|
Reply
|
Paige
|
3/26/2010 4:47:16 PM
|
|