Home > Output

Chapter 5: Introduction to presenting statistical analyses using SAS

Box 5.3 Assessing non-response bias

Box 5.3

Box 5.3 Code

Code for box 5.3

Click here to show code as text

Box 5.4 Population profile from a report

Box 5.4 Population pro fie from a report

Box 5.4 Code

Code for box 5.4

Click here to show code as text

Table 5.1 Single Concise table from a paper with adjusted and unadjusted estimates

Table 5.2 Table suitable for an oral presentation

Table 5.1 Early Pregnancy Study Table 5.1 Early Pregnancy Study Table 5.1 Early Pregnancy Study Table 5.1 Early Pregnancy Study Table 5.1 Early Pregnancy Study Table 5.1 Early Pregnancy Study Table 5.1 Early Pregnancy Study

Table 5.1 and 5.2 Code

Code for Table 5.1 Code for Table 5.1

Click here to show code as text

Figure 5.2 Several binary variables on one graph suitable for a poster or talk

Figure 5.2 Several binary variables on one graph suitable for a poster or talk (example) Figure 5.2 Several binary variables on one graph suitable for a poster or talk (example) Figure 5.2 Several binary variables on one graph suitable for a poster or talk (example)

Figure 5.2 Code

Code for figure 5.2 Code for figure 5.2

Click here to show code as text

Figure 5.3 Graph for an ordered categorical variable suitable for poster or talk

Figure 5.3 Graph for an ordered categorical variable suitable for poster or talk (example)

Figure 5.3 Code

Code for figure 5.2

Click here to show code as text

Figure 5.4 Graph comparing two groups of patients suitable for poster or talk

Figure 5.4 Figure 5.4 Graph comparing two groups of patients suitable for poster or talk (example)

Figure 5.4 Code

Code for figure 5.4

Click here to show code as text

Figure 5.5 Calculating the confidence interval of a geometric mean

Figure 5.5 Calculating the confidence interval of a geometric mean in SAS

Figure 5.5 Code

Code for figure 5.5

Click here to show code as text

Table 5.3 Presenting several types of variables with a common theme in one table

Table 5.3 Presenting several types of variables with a common theme in one table

Table 5.3 Code

Code for Table 5.3

Click here to show code as text

Figure 5.6 Using a graph to compare a distribution with a cut-off

Figure 5.6 Calculating the confidnece interval of a geometric mean in SAS

Figure 5.6 Code

This code is advanced. It uses many functions, retain statements, macro code and hexidecimal color codes. UCLA has a lot of good information on SAS including an introduction to macro which can be found here. You can learn about how computers deal with colors here. The Little SAS Book, which can be found here, has a lot of useful information about SAS coding.

Code for figure 5.6 Code for figure 5.6

Click here to show code as text