KM4i252 3 libname 9 332 1 1 libname "c:\projects\xx"; 257 1 257 1 257 1 257 1 257 1 257 1 256 1 256 1 51 1 t252 3 proc append 9 332 1 2 proc append base = data = ; run; 264 1 259 1 259 1 259 1 259 1 258 1 258 1 258 1 3 1 y252 3 proc compare 9 332 1 2 proc compare base = compare = ; run; 264 1 259 1 259 1 259 1 259 1 258 1 258 1 258 1 0 1 p252 3 proc contents 7 332 1 3 proc contents data = position; run; 264 1 264 1 271 1 257 1 257 1 256 1 12 1 252 3 proc copy 13 332 1 3 proc copy in = work out = ; select ; run; 264 1 264 1 264 1 356 1 356 1 356 1 356 1 356 1 356 1 356 1 258 1 258 1 4 1 p252 3 proc corr 7 332 1 5 proc corr data = ; var ; with ; run; 264 1 264 1 264 1 264 1 271 1 256 1 22 1 252 3 proc datasets 21 332 1 4 proc datasets library = nodetails nolist; *delete ; run; quit; 264 1 264 1 264 1 264 1 259 1 258 1 259 1 258 1 259 1 258 1 258 1 258 1 258 1 258 1 258 1 258 1 258 1 258 1 258 1 258 1 8 1 252 3 proc export 19 332 1 2 proc export outfile = "c:\projects\" data = replace; run; 264 1 259 1 259 1 259 1 259 1 259 1 259 1 258 1 258 1 258 1 258 1 258 1 258 1 258 1 258 1 258 1 258 1 258 1 2 1 R252 3 proc format 4 332 1 4 proc format; value run; 264 1 264 1 271 1 10 1 [252 3 proc freq 5 332 1 3 proc freq data = ; tables ; run; 264 1 264 1 271 1 256 1 5 1 i252 3 proc glm 6 332 1 4 proc glm data = ; class ; model ; run; 264 1 264 1 264 1 271 1 256 1 16 1 252 3 proc import 10 332 1 4 proc import out = datafile = "C:\projects\" replace; mixed = yes; sheet = "Sheet1"; run; 264 1 264 1 264 1 259 1 259 1 259 1 258 1 258 1 258 1 6 1 ^252 3 proc loess 5 332 1 3 proc loess data =; model = ; run; 264 1 264 1 271 1 256 1 29 1 ~252 3 proc loess global 5 332 1 3 proc loess data =; model = / select = AICC(global); run; 264 1 264 1 271 1 256 1 30 1 252 3 proc logistic 6 332 1 4 proc logistic data = ; class (ref="")/ param = ref; model (event = "") = ; run; 264 1 264 1 264 1 271 1 256 1 18 1 l252 3 proc means 8 332 1 3 proc means data = ; var ; run; 264 1 264 1 356 1 356 1 356 1 258 1 258 1 7 1 252 3 proc mixed 10 332 1 5 proc mixed data = method = ml covtest;* noclprint noinfo; class id; model / solution chisq;* outp= outpm=; random intercept / type = un sub = id;* solution; run; 264 1 264 1 264 1 264 1 356 1 356 1 356 1 258 1 258 1 19 1 252 3 proc print 9 332 1 4 proc print data = noobs label round; id ; var ; run; 264 1 264 1 264 1 356 1 356 1 356 1 356 1 256 1 9 1 252 3 proc rank 9 332 1 4 proc rank data = out = groups = ; var ; ranks ; run; 264 1 264 1 264 1 356 1 356 1 356 1 356 1 256 1 21 1 v252 3 proc report 6 332 1 4 proc report data = ; column ; define / ""; run; 264 1 264 1 264 1 271 1 256 1 14 1 252 3 proc sgpanel 14 332 1 9 proc sgpanel data = ;* noautolegend; panelby / columns = rows = spacing = ; *colaxis min = max = values = () valueshint; *rowaxis min = max = reftics; reg x = y = ;*/ markerattrs = (symbol = color = ) lineattrs = (color = pattern = ) legendlabel = ""; run; 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 356 1 356 1 356 1 258 1 258 1 20 1 252 3 proc sgplot boxplot 8 332 1 4 proc sgplot data = noautolegend; title ""; boxplot OUTCOME / category = GROUP; run; 264 1 264 1 264 1 271 1 257 1 257 1 256 1 43 1 m252 3 proc sgplot bspline 10 332 1 8 proc sgplot data = ; title ""; pbspline y = x = / datalabel = markerattrs = (symbol = circlefilled color = black size = 3px); xaxis offsetmin = .05 offsetmax = .05 label = ""; yaxis offsetmin = .05 offsetmax = .05 label = "" values = ( to by ); run; 264 1 264 1 264 1 264 1 264 1 264 1 264 1 271 1 256 1 32 1 252 3 proc sgplot hbar 8 332 1 6 proc sgplot data = ; title ""; hbar GROUP / response = RESPONSE stat = mean /*freq mean sum */ numstd = 2 limitstat = /* clm stddev stderr */; run; 264 1 264 1 264 1 264 1 264 1 271 1 256 1 37 1 252 3 proc sgplot histogram 6 332 1 4 proc sgplot data = ; title ""; histogram VARIABLE; run; 264 1 264 1 264 1 271 1 256 1 39 1 a252 3 proc sgplot loess 9 332 1 8 proc sgplot data = ; title ""; loess y = x = / datalabel = markerattrs = (symbol = circlefilled color = black size = 3px); xaxis offsetmin = .05 offsetmax = .05 label = ""; yaxis offsetmin = .05 offsetmax = .05 label = "" values = ( to by ); run; 264 1 264 1 264 1 264 1 264 1 264 1 256 1 256 1 28 1 252 3 proc sgplot needle 8 332 1 7 proc sgplot data = ; title ""; needle y = x = ; xaxis offsetmin = .05 offsetmax = .05 label = ""; yaxis offsetmin = .05 offsetmax = .05 label = "" values = ( to by ); run; 264 1 264 1 264 1 264 1 264 1 256 1 256 1 48 1 ]252 3 proc sgplot reg 9 332 1 8 proc sgplot data = ; title ""; reg y = x = / datalabel = markerattrs = (symbol = circlefilled color = black size = 3px); xaxis offsetmin = .05 offsetmax = .05 label = ""; yaxis offsetmin = .05 offsetmax = .05 label = "" values = ( to by ); run; 264 1 264 1 264 1 264 1 264 1 264 1 256 1 256 1 26 1 }252 3 proc sgplot reg group 10 332 1 9 proc sgplot data = ; title ""; reg y = x = / group = datalabel = markerattrs = (symbol = circlefilled color = black size = 3px); xaxis offsetmin = .05 offsetmax = .05 label = ""; yaxis offsetmin = .05 offsetmax = .05 label = "" values = ( to by ); run; 264 1 264 1 264 1 264 1 264 1 264 1 264 1 256 1 256 1 35 1 l252 3 proc sgplot scatter 10 332 1 8 proc sgplot data = ; title ""; scatter y = x = / datalabel = markerattrs = (symbol = circlefilled color = black size = 3px); xaxis offsetmin = .05 offsetmax = .05 label = ""; yaxis offsetmin = .05 offsetmax = .05 label = "" values = ( to by ); run; 264 1 264 1 264 1 264 1 264 1 264 1 264 1 271 1 256 1 24 1 252 3 proc sgplot series 6 332 1 4 proc sgplot data = ; title ""; series y = OUTCOME x = DATE / group = GROUP; run; 264 1 264 1 264 1 271 1 256 1 45 1 a252 3 proc sort 6 332 1 4 proc sort data = ; by ; run; 264 1 264 1 264 1 271 1 256 1 15 1 252 3 proc sql 10 332 1 7 proc sql; create table as select from where ; quit; 264 1 264 1 264 1 264 1 264 1 259 1 259 1 259 1 258 1 1 1 252 3 proc summary 7 332 1 5 proc summary data = ; class ; var ; output out = mean= /autoname autolabel; run; 264 1 264 1 264 1 264 1 271 1 256 1 13 1 252 3 proc template barchart 17 332 1 15 proc template; define statgraph TABLENAME; begingraph; entrytitle ''; layout overlay ; barchart y = x = / stat = mean /*freq pct sum */ orient = horizontal; endlayout; endgraph; end; run; proc sgrender data = template = TABLENAME; run; 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 256 1 256 1 256 1 262 1 36 1 )252 3 proc template block 17 332 1 15 proc template; define statgraph TABLENAME; begingraph; entrytitle ''; layout overlay; blockplot x = DATE block = THEBLOCK / filltype=multicolor datatransparency=.3 valuevalign=top labelposition=top display=(fill values label) blockindex = IDNUMBER; endlayout; endgraph; end; run; proc sgrender data = template = TABLENAME; run; 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 271 1 256 1 358 1 50 1 y252 3 proc template boxplot 16 332 1 14 proc template; define statgraph TABLENAME; begingraph; entrytitle ''; layout overlay ; boxplot y = x = / orient = horizontal; endlayout; endgraph; end; run; proc sgrender data = template = TABLENAME; run; 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 271 1 256 1 358 1 42 1 252 3 proc template bspline 17 332 1 15 proc template; define statgraph TABLENAME; begingraph; entrytitle ''; layout overlay; scatterplot y = x = ; pbsplineplot y = x =; endlayout; endgraph; end; run; proc sgrender data = template = TABLENAME; run; 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 271 1 256 1 262 1 31 1 252 3 proc template density 16 332 1 14 proc template; define statgraph TABLENAME; begingraph; entrytitle ''; layout overlay ; histogram VARIABLE / endlabels = true; densityplot VARIABLE / kernel(); /* normal() */ endlayout; endgraph; end; run; proc sgrender data = template = TABLENAME; run; 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 271 1 256 1 262 1 40 1 W252 3 proc template dot 28 332 1 22 proc means data = noprint nway; var OUTCOME; class THEGROUP; output out = tmp mean = OUTCOME lclm = lower uclm = upper; run; proc template; define statgraph dotplot; begingraph; entrytitle ''; layout overlay / yaxisopts = (type = discrete griddisplay = on reverse = true); scatterplot y = THEGROUP x = OUTCOME / xerrorlower = lower xerrorupper = upper markerattrs = (symbol = circlefilled) name = 'thingy' legendlabel = "mean and 95% Confidence Limits"; discretelegend 'thingy' / title = "whatever"; endlayout; endgraph; end; run; proc sgrender data = tmp template = dotplot; run; 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 271 1 257 1 257 1 257 1 257 1 256 1 46 1 252 3 proc template fringe 17 332 1 15 proc template; define statgraph TABLENAME; begingraph; entrytitle ''; layout overlay ; histogram / endlabels = true; densityplot / kernel(); /* normal() */ fringeplot ; endlayout; endgraph; end; run; proc sgrender data = template = TABLENAME; run; 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 271 1 256 1 358 1 41 1 z252 3 proc template histogram 16 332 1 14 proc template; define statgraph TABLENAME; begingraph; entrytitle ''; layout overlay ; histogram VARIABLE / endlabels = true; endlayout; endgraph; end; run; proc sgrender data = template = TABLENAME; run; 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 271 1 256 1 358 1 38 1 ~252 3 proc template loess 16 332 1 15 proc template; define statgraph TABLENAME; begingraph; entrytitle ''; layout overlay; scatterplot y = x = ; loessplot y = x =; endlayout; endgraph; end; run; proc sgrender data = template = TABLENAME; run; 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 256 1 256 1 262 1 27 1 ]252 3 proc template needle 15 332 1 13 proc template; define statgraph TABLENAME; begingraph; entrytitle ''; layout overlay; needleplot y = x = ; endlayout; endgraph; end; run; proc sgrender data = template = TABLENAME; run; 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 271 1 257 1 358 1 47 1 252 3 proc template reg 15 332 1 15 proc template; define statgraph TABLENAME; begingraph; entrytitle ''; layout overlay; scatterplot y = x = ; regressionplot y = x = / degree = 3; endlayout; endgraph; end; run; proc sgrender data = template = TABLENAME; run; 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 257 1 358 1 25 1 252 3 proc template reg group 18 332 1 16 proc template; define statgraph TABLENAME; begingraph; entrytitle ''; layout overlay; scatterplot y = x = / group =; regressionplot y = x = / group = degree = 3 name ="thingy"; discretelegend = "thingy" / title = ""; endlayout; endgraph; end; run; proc sgrender data = template = TABLENAME; run; 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 271 1 256 1 358 1 34 1 252 3 proc template scatter 22 332 1 20 proc template; define statgraph TABLENAME; begingraph; entrytitle ''; layout overlay / xaxisopts = (offsetmin=.05 offsetmax=.05 label='') yaxisopts = (offsetmin=.05 offsetmax=.05 label='' linearopts = (tickvaluesequence = (start = end = increment = ) viewmin = ) ); scatterplot y = x = / datalabel = LABELVARIABLE markerattrs = (symbol = circlefilled color = black size = 3px); endlayout; endgraph; end; run; proc sgrender data = template = TABLENAME; run; 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 256 1 256 1 256 1 358 1 23 1 252 3 proc template series 16 332 1 14 proc template; define statgraph TABLENAME; begingraph; entrytitle ''; layout overlay ; seriesplot y = OUTCOME x = DATEVAR / group = GROUPVAR name = 'thingy'; discretelegend 'thingy' / title = "SOMETHING"; endlayout; endgraph; end; run; proc sgrender data = template = TABLENAME; run; 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 271 1 256 1 358 1 44 1 252 3 proc template step 15 332 1 13 proc template; define statgraph TABLENAME; begingraph; entrytitle ''; layout overlay; stepplot y = x = / display = (markers) markersize = (size = 3px); endlayout; endgraph; end; run; proc sgrender data = template = TABLENAME; run; 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 264 1 271 1 256 1 358 1 49 1 %252 3 proc transpose 11 332 1 5 proc transpose data = out = (drop = _name_ _label_); *prefix = ; * prefix for narrow to wide; by ; * group identifiers; id ; * column heading in long file; var ; * values repeated; run; 264 1 264 1 264 1 264 1 270 1 356 1 356 1 356 1 258 1 258 1 17 1 252 3 proc transreg 6 332 1 4 proc transreg data = ; model identity(OUTCOME) = pbspline(PREDICTOR / sbc lambda = 2 10000 range); run; 264 1 264 1 264 1 271 1 256 1 33 1 e252 3 proc univariate 5 332 1 3 proc univariate data = ; var ; run; 264 1 264 1 271 1 256 1 11 1