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 |
How to specify variables to be processed by the freq procedure?
How does proc sql work?
Mention how to limit decimal places for the variable using proc means?
Describe the ways in which you can create macro variables? : sas-macro
libname deepak 'C:\SAS Files'; proc format; invalue convert 'A+' = 100 'A' = 96 'A-' = 92 'B+' = 88 'B' = 84 'B-' = 80 'C+' = 76 'C' = 72 'F' = 65; data deepak.grades; input ID $3. Grade convert.; *format Grade convert. ; datalines; 001 A- 002 B+ 003 F 004 C+ 005 A ; proc print data = deepak.grades; run; I get the following output Obs ID Grade 1 001 . 2 002 . 3 003 . 4 004 . 5 005 . I don’t understand why Grade shows up as a missing value. Everything seems fine, including ID $3. Now, in case I use ID : $3. Or use column input, I get the desired output. Kindly help Deepak
How long can a macro variable be? A token? : sas-macro
what is AE onset date and what is RDS?
describe about metadata object? : Sas-di
What do the PUT and INPUT functions do?
in the flow of data step processing, what is the first action in a typical data step? : Sas programming
Can you use a macro within another macro? If so how would SAS know where the current acro ended and the new one began?
HOW DO WE CREATE A SAS STORED PROCESS IN SAS EG ?