How do you generate random samples?
Answers were Sorted based on User's Feedback
Answer / sandhya
PROC SURVEYSELECT gives you the resulting sample dataset
from the population dataset. It is much more sofisticated.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / chandu
sekhar and vinodh plz u people explain this briefly plz....
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / bhimu
ranuni()- Function will generate uniform random numbers
between 0 and 1
Ranuni(123) - here 123 is called seed.
Like that you can use Binomial and Poisson distributions.
You can also go for the procedure
PROC SURVEYSELECT
| Is This Answer Correct ? | 1 Yes | 1 No |
Explain the special input delimiters used in sas programming.
What is the difference between SAS Data step and SAS PROC SQL, and which is better?
what do the sas log messages "numeric values have been converted to character" mean? : Sas programming
If reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record?
What is the difference between nodup and nodupkey options?
20 Answers iFlex, Makro, Talwar,
I use NOCUM/NOPERCENT option in the tables statement like this Proc freq data = deepak; tables x y /nocum nopercent; run; Here I get nopercent and nocum in the output only for variables x and y. How do i do it for all variables? Deepak
what is treatment emergent events and treatment emregent adverse event
What is the difference between where and if statement?
What are the advantages of using sas?
data data1; input dt account; format dt date9.; cards; 1745 1230 1756 1120 1788 1130 1767 1240 ; data data2; input startdt enddt total; format startdt date9. enddt date9.; cards; 1657 1834 12300 1557 1758 16800 1789 1789 12300 1788 1345 12383 1899 1899 13250 ; proc sql; create table data3 as select * from data1 as x left join data2 as y on x.dt>=y.startdt and x.dt<=y.enddt; quit; Here, we are getting cartision product. But,I want left join report consisting of this program. It should not get duplicate values. you can modify the program also.
what is TAB delimiter? explain about it? what will you do to get TAB delimiter?
how to import XTP files into SAS datasets?
1 Answers Barclays, Institute For Plasma Research,