How to select the observations randomly from a SAS dataset

Answer Posted / chowdary vamsi

using rununni function generate random sample observations

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain data step in SAS

871


I need level 2 to 5 sas using companies in india

2147


How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?

1453


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.

2048


What is the length assigned to the target variable by the scan function?

919


which features do you use to check the data validations and errors? : Sas-administrator

828


how would you create multiple observations from a single observation? : Sas programming

797


what is information maps?

1856


how do you test for missing values? : Sas programming

807


What is factor analysis?

872


What is the use of function Proc summary?

933


if you were told to create many records from one record, show how you would do this using array and with proc transpose? : Sas programming

778


Describe the function and untility of the most difficult SAS macro that you have written.

1970


Explain the purpose of retain statement.

826


How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?

1055