-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathADLB_Chem_Change from Baseline.sas
56 lines (48 loc) · 1.96 KB
/
ADLB_Chem_Change from Baseline.sas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/****************************************************************************************
Program: Program_3-1.sas
SAS Version: SAS Enterprise Guide 7.15 (SAS 9.4m5)
Developer: Yuchuan Han
Date: 2023-11-23
Purpose: Produce outputs for SAS� Graphics for Clinical Trials by Example book.
Operating Sys: Windows 10
Macros: NONE
Input: adlbchem.sas7bdat
Output: Output_3-2.rtf
-----------------------------------------------------------------------------------------
****************************************************************************************/
/*******************************************/
/*** BEGIN SECTION TO BE UPDATED BY USER ***/
/*******************************************/
options validvarname=upcase;
libname adam "/home/u61403758" access=readonly;
libname tfldata "/home/u61403758/tfldata";
%let outputpath = /home/u61403758/output;
/*****************************************/
/*** END SECTION TO BE UPDATED BY USER ***/
/*****************************************/
/* formats to display time point */
proc format;
value trt
0 = 'Placebo'
54 = 'Xanomeline Low Dose'
81 = 'Xanomeline High Dose'
;
run;
options nobyline nodate nonumber;
ods graphics on / imagefmt = png width = 5in noborder;
ods rtf file = "&outpath.\&outname..rtf"
image_dpi = 300
style = customSapphire;
title #byval2 at #byval4;
/* subset for albumin and analysis visit less than 4 for display purposes only */
proc sgplot data = adam.adlbchem noautolegend;
where paramcd in ('ALB') and avisitn <= 4;
by paramcd param avisitn avisit;
format trtan trt.;
vbox chg / category = trtan extreme displaystats = (max min std mean n);
scatter x = trtan y = chg / jitter;
xaxis type = discrete label = "Treatment";
yaxis type = linear label = "Change from Baseline" ;
run;
ods rtf close;
ods graphics off;