Hi,
I'm currently waiting to get access for sas viya but I have a test case scenario to compare between sas eg and sas viya and just want to verify the sas viya code. For bootstrapping in sas eg I have this code
proc surveyselect data=data
out=BootSamples noprint
seed=25
reps=2000
method=urs
samprate=1
outhits;
run;
Am I right that this would be the equivalent code in sas viya or am i missing something?
/* Start CAS session and load data into CAS */
cas mysess sessopts=(caslib='casuser');
libname mylib cas sessref=mysess;
/* Load example data */
proc casutil;
load data=data casout="sample" replace;
run;
/* Perform bootstrap resampling using the sampling action set */
proc cas;
action sampling.srs result=r /
table={caslib='casuser', name='sample'}
output={casout={caslib='casuser', name='BootSamples', replace=true}}
samppct=100 /* Sampling rate of 100% for bootstrap */
method='URS' /* Unrestricted random sampling with replacement */
seed=25 /* Seed for reproducibility */
reps=2000; /* Number of bootstrap replicates */
selection={name='Freq', includeFreq=true}; /* Include frequency counts in the output */
quit;
/* Fetch and display some of the bootstrap samples (Optional) */
proc cas;
table.fetch / table={caslib='casuser', name='BootSamples'} to=10;
quit;
/* End CAS session */
cas mysess terminate;
... View more
Hello there,
Data three; input x a$; datalines; 1 a1 1 a2 2 b1 2 b2 4 d ; run;
Data four; input x b$; datalines; 2 x1 2 x2 3 y 5 v ; run;
proc sql; title 'Table Merged'; select coalesce(three.x, four.x) as x, a, b from three full join four on three.x = four.x; quit;
table1 x a b
1 a2
data merged; merge three four; by x; run;
table2;
x a b
1 a1
I don't understand While the proc sq join starts with table1 instead of table2.
Please clariification?
Thanks
... View more
Hi IoT Community,
Dedicated to highlighting the innovative ways SAS empowers customers, this new web series, IoT Innovators, will explore the ideas, designs, and implementation for cutting-edge IoT solutions to help you accelerate your time to value on IoT projects.
Episode 1: From Pixel to Action Insights
Available on-demand, the first episode host Brandon Kooman (@bkooman) discusses computer vision and streaming analytics with experts, Juthika Khargharia (@Juthika) and Tom Tuning (@TomTuning) – sharing real-world examples, field challenges and advances they foresee the industry making in the next few years.
From practical use cases to groundbreaking advancements, this new series promises insights you won’t want to miss. Tune in to gain valuable insights that will help shape the way you think about SAS and IoT. 2.sas.com/61105eh4KX
... View more
Hi there
I am automating error checking in some of our processes. When I get the error emailed to me, I am getting the last error in the log. How do I ensure I get the 1st error message?
I am emailing myself the following:
&syserrortext
Is there any other one I can use so I get exactly the first error?
... View more