Recently in the SAS Community Library: SAS' @AndyRavenna publishes the second of two posts that uses statistics and machine-learning objects in SAS Visual Analytics to address real-world business problems.
when I run the below code to perform the special cause test, I receive the warning shown below. Could you please advise on how to fix that?
proc shewhart data=tmp10;
pchart yes_answer*month /Markers subgroupn = n_per_group ODSTITLE="P-chart with Tests for Special Causes"
tests = 1 to 4
testnmethod = standardize
table
tablelegend
nohlabel;
LABEL yes_answer ="Prop of Pts Receiving IV Abx";
run;
WARNING: Asymmetric control limits encountered for yes_answer for at least one subgroup. WARNING: It is assumed that the difference between the upper limit and center line represents three standard errors.
Thank you!
... View more
data WORK. NEW;
set WORK. OLD (keep=X);
if X <10 then X=1;
else if X >=10 and X LT 20 then X=2;
else X=3;
run: In filtering the values of the variable X. What would be new value of X if it's original value was missing?
... View more
This is Part 2 of the post on running SAS Viya on a shared Kubernetes cluster. In Part 1 I discussed some of the challenges that can be encountered when deploying SAS Viya in a cluster that has untainted nodes, as well as the main deployment considerations.
In this post I will discuss implementing required scheduling, required nodeAffinity, to force a desired topology when there are untainted nodes in the cluster.
... View more
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