data abc;
input x y ;
cards;
1 2
5 6
7 8
7 8
1 7
5 7
;
run;
Proc Freq data=abc;
tables x*y / chisq nopercent nocol norow PLCORR;
RUN;

If we run the code, we have Polychoric Correlation = 0.9054
in the last table.
I want to extract this particular entry with the value.
Means I will create one dataset in which this value will be
stored/extracted.
I need your help in coding this. Please help me out.

Answers were Sorted based on User's Feedback



data abc; input x y ; cards; 1 2 5 6 7 8 7 8 1 7 5 7 ; run; Proc Freq data=abc; tables x..

Answer / neeraj upadhyay

data abc;
input x y ;
cards;
1 2
5 6
7 8
7 8
1 7
5 7
;
run;
Proc Freq data=abc;
tables x*y / chisq nopercent nocol norow PLCORR;
output out = xyz PLCORR ;
RUN;

Is This Answer Correct ?    10 Yes 0 No

data abc; input x y ; cards; 1 2 5 6 7 8 7 8 1 7 5 7 ; run; Proc Freq data=abc; tables x..

Answer / poojavaibhav

hi,

in Proc step if you want to create a dataset then use
output out= statement.

answer above given is correct.

Thanks

Is This Answer Correct ?    4 Yes 0 No

Post New Answer

More SAS Interview Questions

how sas deals with business intelligence? : Sas-bi

0 Answers  


If you’re not wanting any SAS output from a data step, how would you code the data statement to prevent SAS from producing a set?

8 Answers   Accenture,


What will calendar procedure do?

0 Answers  


You have a data set of 100 observations,how can you restrict the output so that the output has only data from row no. 10 to row no. 20

9 Answers  


How would you delete observations with duplicate keys?

13 Answers   Accenture,






What is shift table? have you ever created shift that?

2 Answers   Accenture, Clinical Research, Quintiles,


how will you locate the sas platform applications? : Sas-bi

0 Answers  


Difference b/n proc means and proc summary procedures?

3 Answers   Accenture,


How can you put a "trace" in your program?

2 Answers   Quintiles,


i have a null dataset with 20 variables. i want to upload the variables which contain name like a or k or anything in another dataset.how can we create the dataset?

3 Answers   L&T,


I have a SCD Type 2 Dimention for Location In which A Sales Office in Having two Surrogate Keys just because of the change in it's Sales Group. SKey SalesGroup Sales Office BeginDate EndDate 280 SG1 SO1 01APR2000 01APR2010 281 SG2 SO1 02APR2010 31MAR2999 Now while loading the Fact, the Lookup ir returning SKey 280 for records before and after 01APR2010. I am not able to give WHERE condition in the Lookup Properties (TranDate between BeginDate and EndDate). Please help.

0 Answers  


How many ways to overcome a missing values???

0 Answers   HSBC,


Categories