Hi to all,
Sas code
/*STRATA METHOD */
PROC SORT DATA=PROD_DATA OUT=PROD_DATA_SORT;
BY PROD_FLAG;
RUN;
PROC SURVEYSELECT DATA=PROD_DATA_SORT OUT=STRATA_SPLIT SAMPRATE=.7 SEED=34258 OUTALL;
STRATA PROD_FLAG;
RUN;
DATA TRAINING VALIDATION;
SET STRATA_SPLIT;
IF SELECTED = 1 THEN OUTPUT TRAINING;
ELSE OUTPUT VALIDATION;
RUN;
I have one data set it contains 100 observations. Spiting data into 70% and 30% using PROC SURVEYSELECT method with Strata statement.
Then data is split into 70 and 30 .
But i have two problems
1.Run same code into another system/ laptop. the data split is 70 and 30.
But In both of 70 agents are differed.
How to get same agents on all laptops?
2.Adding some variables to data set and spit is 70 and 30
But In both of 70 agents are differed.
How to get same agents on all laptops?
please give your valuable suggestions
Thanks,
Lakshminrayana.