How could you generate test data with no input data?
Answers were Sorted based on User's Feedback
Answer / bitla
using random functions like RANUNI() RANBIN() etc
with DO loops
ex:
data one;
do i=1 to 1000;
x=ranuni(32223);
end;
run;
| Is This Answer Correct ? | 11 Yes | 1 No |
Answer / k ramesh
data testdata_anlyse;
do i=1 to 100;
x=rannor(i);
output;
end;
run;
| Is This Answer Correct ? | 3 Yes | 1 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*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.
How do you control the number of observations and/or variables read or written?
how does sas know on which server the piece of code to be executed ? say if a proc olap code is written then how the sas application would detect on which server to execute.
What is the order of evaluation of the comparison && logical && relational operators:?
I am having a stored process.it needs to route my report to both hthml and Xls.By default SP routes to html.I used the PRINTTO to route the html to Xls.BUt it createsthe file not but no content was written to file(0KB)?how can i do it?
Tell me about % include and % eval? : sas-macro
How to get any kind of data in SAS? Is it possible to take data from notepad in SAS?
diff between nodup rec and ondup key???
explain what is factor analysis? : Sas-administrator
What does proc print, and proc contents are used for?
how does sas handle missing values in assignment statements? : Sas programming
Explain the difference between informat and format with an example.