Basic SAS

Just an entry for SAS with the basic .sas file extension and two
examples.
This commit is contained in:
Eric Lofgren
2013-12-03 14:48:55 -05:00
parent 4a5165ad7f
commit 3ecc1f883c
3 changed files with 37 additions and 0 deletions

View File

@@ -1353,6 +1353,11 @@ Rust:
color: "#dea584"
primary_extension: .rs
SAS:
type: programming
color: "#1E90FF"
primary_extension: .sas
SCSS:
type: markup
group: CSS

17
samples/SAS/data.sas Normal file
View File

@@ -0,0 +1,17 @@
/* Example DATA step code for linguist */
libname source 'C:\path\to\file'
data work.working_copy;
set source.original_file.sas7bdat;
run;
data work.working_copy;
set work.working_copy;
if Purge = 1 then delete;
run;
data work.working_copy;
set work.working_copy;
if ImportantVariable = . then MissingFlag = 1;
run;

15
samples/SAS/proc.sas Normal file
View File

@@ -0,0 +1,15 @@
/* PROC examples for Linguist */
proc surveyselect data=work.data out=work.boot method=urs reps=20000 seed=2156 sampsize=28 outhits;
samplingunit Site;
run;
PROC MI data=work.boot out=work.bootmi nimpute=30 seed=5686 round = 1;
By Replicate;
VAR Variable1 Variable2;
run;
proc logistic data=work.bootmi descending;
By Replicate _Imputation_;
model Outcome = Variable1 Variable2 / risklimits;
run;