mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-12-08 20:38:47 +00:00
Basic SAS
Just an entry for SAS with the basic .sas file extension and two examples.
This commit is contained in:
@@ -1353,6 +1353,11 @@ Rust:
|
|||||||
color: "#dea584"
|
color: "#dea584"
|
||||||
primary_extension: .rs
|
primary_extension: .rs
|
||||||
|
|
||||||
|
SAS:
|
||||||
|
type: programming
|
||||||
|
color: "#1E90FF"
|
||||||
|
primary_extension: .sas
|
||||||
|
|
||||||
SCSS:
|
SCSS:
|
||||||
type: markup
|
type: markup
|
||||||
group: CSS
|
group: CSS
|
||||||
|
|||||||
17
samples/SAS/data.sas
Normal file
17
samples/SAS/data.sas
Normal 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
15
samples/SAS/proc.sas
Normal 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;
|
||||||
Reference in New Issue
Block a user