Computing Percentage Using PROC TABULATE from Simple to More Complex
|
|
|
- Myles Perry
- 9 years ago
- Views:
Transcription
1 PharmaSUG Paper PO16 Computing Percentage Using PROC TABULATE from Simple to More Complex Wende (Ted) Tian, Merck Sharpe & Dohme Corp., Rahway, NJ Hong (Lily) Zhang, Merck Sharpe & Dohme Corp., Rahway, NJ ABSTRACT The TABULATE procedure can calculate the percentages of the total count or sum of analysis variables for individual cells. This paper will first review how to calculate basic percentage using PCTN, PCTSUM, ROWPCTN, ROWPCTSUM, COLPCTN and COLPCTSUM, and then focus on creating more complex percentages on concatenated tables and computing percentages of subtotals, etc. INTRODUCTION The TABULATE procedure displays descriptive statistics in tabular format using some or all of the variables in a data set. We can create a variety of tables ranging from simple to highly customized using the TABULATE procedure. The general syntax of PROC TABULATE is as follows: PROC TABULATE <option(s)>; BY <DESCENDING> variable-1 <...<DESCENDING> variable-n> <NOTSORTED>; CLASS variable(s) </ options>; CLASSLEV variable(s) / STYLE=<style-element-name PARENT> <[style-attribute-specification(s)] >; FREQ variable; KEYLABEL keyword-1='description-1' <...keyword-n='description-n'>; KEYWORD keyword(s) / STYLE=<style-element-name PARENT> <[style-attribute-specification(s)] >; TABLE <<page-expression,> row-expression,> column-expression</ table-option(s)>; VAR analysis-variable(s)</ options>; WEIGHT variable; One of main applications of the TABULATE procedure is calculating percentages. This paper will next briefly review the percentage statistics used in TABULATE and then move to more complex calculations of percentage.
2 PERCENTAGE STATISTICS In this paper, we use the following CDISC ADaM format test data to illustrate the application of the TABULATE procedure in calculating percentages: SUBJID SEX SITE TRT AVISIT PARAMCD AVAL F USA Placebo Week 0 ALT F USA Placebo Week 0 AST F USA Placebo Week 4 ALT F USA Placebo Week 4 AST F USA Study drug Week 0 ALT F USA Study drug Week 0 AST F USA Study drug Week 4 ALT F USA Study drug Week 4 AST M USA Placebo Week 0 ALT M USA Placebo Week 0 AST M USA Placebo Week 4 ALT M USA Placebo Week 4 AST F Ex-USA Placebo Week 0 ALT F Ex-USA Placebo Week 0 AST F Ex-USA Placebo Week 4 ALT F Ex-USA Placebo Week 4 AST M USA Placebo Week 0 ALT M USA Placebo Week 0 AST M USA Placebo Week 4 ALT M USA Placebo Week 4 AST M Ex-USA Study drug Week 0 ALT M Ex-USA Study drug Week 0 AST M Ex-USA Study drug Week 4 ALT M Ex-USA Study drug Week 4 AST 17 Below is a summary of percentage statistics used in PROC TABULATE: PCTN and PCTSUM Statistic Percentage Calculated Require a denominator definition? ROWPCTN and ROWPCTSUM COLPCTN and COLPCTSUM REPPCTN and REPPCTSUM PAGEPCTN and PAGEPCTSUM Display the percentage of the value in a single table cell in relation to the value (used in the denominator of the calculation of the percentage) in another table cell or to the total of the values in a group of cells. By default, PROC TABULATE summarizes the values in all N cells (for PCTN) or all SUM cells (for PCTSUM) and uses the summarized value for the denominator Display the percentage of the value in a single table cell in relation to the total of the values in the row. Display the percentage of the value in a single table cell in relation to the total of the values in the column Display the percentage of the value in a single table cell in relation to the total of the values in the report Display the percentage of the value in a single table cell in relation to the total of the values in the page Can specify a denominator definition other than the default In the above table, PCTN and XXXPCTN are used to calculate the percentage for class variables, and PCTSUM and XXXPCTSUM are used for analysis variables. Below are some of examples of these TABULATE procedure statistics: No No No No
3 PCTN AND PCTSUM We will start with the simple SAS code below to illustrate how to display percentage using PCTN and PCTSUM. proc tabulate data=test.adlb (where=(paramcd='alt' and avisit='week 4')); class paramcd trt sex; var aval; table trt all, (sex='gender (Count)' all)*n*f=4. (sex='gender (%)' all)*pctn /box='example of using PCTN'; table trt all, (sex='gender (Count)' all)*aval='lab Result'*sum*f=6. (sex='gender (%)' all)*aval='lab Result'*PCTSUM /box='example of using PCTSUM'; This code generates the following output: Figure 1: Example of using PCTN ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒ ƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ Example of using PCTN Gender (Count) Gender (%) ƒƒƒƒ ƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ F M All F M All ƒƒƒƒˆƒƒƒƒˆƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ N N N PctN PctN PctN Treatment Arm ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Placebo Study drug All Šƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒ ƒƒƒƒ ƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒœ Figure 2: Example of using PCTSUM ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ Example of using Gender PCTSUM (Count) Gender (%) ƒƒƒƒƒƒ ƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ F M All ƒƒƒƒƒƒˆƒƒƒƒƒƒˆƒƒƒƒƒƒ F M All Lab Lab Lab ƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ Result Result Result Lab Result Lab Result Lab Result ƒƒƒƒƒƒˆƒƒƒƒƒƒˆƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ Sum Sum Sum PctSum PctSum PctSum Treatment Arm ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Placebo Study drug All Šƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒ ƒƒƒƒƒƒ ƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒœ
4 Basically, PCTN is used to compute the percentages for frequency counts of the grand total and PCTSUM is used to compute the percentage for the grand total of the analysis variable. The formula is: Percent=100*value in given cell sum of all cell values in the table The percentage number in Figures 1 and 2 are calculated using this formula. When using PCTN and PCTSUM, we can also define the denominator in the table statement. The general expression is: PCTN< denominator > or PCTSUM<denominator> The denominator within <> represents the class variables in the dimension across which you are summing. In this case, the output from PCTN<denominator> is the same as COLPCTN or ROWPCTN, and PCTSUM<denominator> is the same as COLPCTSUM or ROWPCTSUM, depending on the dimension of the denominator within <>. Below is SAS code and output to illustrate this. proc tabulate data=test.adlb(where=(paramcd='alt' and avisit='week 4')); class sex site; table sex* (n='number of Patients'*f=4. pctn<site>= 'Percentage of Row Totals (% of site)' pctn<sex>='percentage of Column Totals (% of sex)' pctn='% of All Patients'), site/rts=60 box='example of PCTN with specifying denominator'; Figure 3. Example of PCTN with specifying denominator ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Example of PCTN with specifying denominator SITE ƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ Ex-USA USA ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ Gender ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ F Number of Patients 1 2 Percentage of Row Totals (% of site) Percentage of Column Totals (% of sex) % of All Patients ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ M Number of Patients 1 2 Percentage of Row Totals (% of site) Percentage of Column Totals (% of sex) % of All Patients Šƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒœ
5 In the above output, pctn<site> calculates percentage by summing the number of patients in all sites within the same sex as the denominator. For example, for female patients at Ex-USA site, the % of site is 1/(1+2)*100= Similarly, pctn<sex> defines the number of patients in all genders within the same site as the denominator. For example, for Ex-USA female patients, the % of sex is 1/(1+1)*100= PCTN does not define the denominator, so the grand total of the number of patients in the table is the denominator. For example, % of all female patients at Ex-US site = 1/( )*100= In another example, the following code calculates the total number of lab test values in each week by each test and the resulting three different percentages of PCTSUM. proc tabulate data=test.adlb; class paramcd avisit; var aval; table paramcd=''* (sum='total Test Value'*f=5. n='number of Patients'*f=4. pctsum<avisit>= 'Percentage of Row Totals (% by week)' pctsum<paramcd>='percentage of Column Totals (% by test code)' pctsum='% of All Patients'), avisit*aval=''/rts=50 box='example of PCTSUM with specifying denominator'; Figure 4. Example of PCTSUM with specifying denominator ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Example of PCTSUM with specifying denominator Analysis timepoint description ƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ Week 0 Week 4 ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ ALT Total Test Value Number of Patients 6 6 Percentage of Row Totals (% by week) Percentage of Column Totals (% by test code) % of All Patients ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ AST Total Test Value Number of Patients 6 6 Percentage of Row Totals (% by week) Percentage of Column Totals (% by test code) % of All Patients Šƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒœ The above output shows the total value for the ALT test (98) at week 0. Pctsum<week> defines the total value of all weeks for a specific test as the denominator. For example % by week for ALT in week 0 is calculated as 98/(98+96)*100= Pctsum<paramcd> defines the total value for all the tests in a specific week as the denominator. For example, % by test code for ALT in week 0 is calculated as 98/(98+86)*100= Pctsum does not define the denominator. The default denominator is
6 the total value of all the tests in all weeks. For example, % of all patients for ALT in week 0 is calculated as 98/( )*100= ROWPCTN AND ROWPCTSUM COLPCTN AND COLPCTSUM ROWPCTN, ROWPCTSUM, COLPCTN and COLPCTSUM statistics for the TABULATE procedure simplify the code for calculating percentage. The general formula for computing percentage based on row or column totals is: Row (Column) percent = 100 * value in the given cell/sum over all rows (columns) for that row (column) In this paper, we only use an example to show how to use ROWPCTN and ROWPCTSUM. The usage of COLPCTN and COLPCTSUM are similar. Below is the code that illustrates use of ROWPCTN and ROWPCTSUM proc tabulate data=test.adlb (where=(paramcd='alt' and avisit='week 4')); class paramcd trt sex; var aval; table trt all, (sex='gender (Count)' all)*n*f=4. (sex='gender (%)' all) *ROWPCTN/box='Example of using ROWPCTN'; table trt all, (sex='gender (Count)' all)*aval='lab Result'*sum*f=6. (sex='gender (%)' all)*aval='lab Result'*ROWPCTSUM /box='example of using ROWPCTSUM'; Below is the resulting output. Figure 5. Example of using ROWPCTN ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒ ƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ Example of using Gender ROWPCTN (Count) Gender (%) ƒƒƒƒ ƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ F M All F M All ƒƒƒƒˆƒƒƒƒˆƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ N N N RowPctN RowPctN RowPctN Treatment Arm ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Placebo Study drug All Šƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒ ƒƒƒƒ ƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒœ
7 Figure 6. Example of using ROWPCTSUM. ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ Example of using Gender ROWPCTSUM (Count) Gender (%) ƒƒƒƒƒƒ ƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ F M All ƒƒƒƒƒƒˆƒƒƒƒƒƒˆƒƒƒƒƒƒ F M All Lab Lab Lab ƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ Result Result Result Lab Result Lab Result Lab Result ƒƒƒƒƒƒˆƒƒƒƒƒƒˆƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ Sum Sum Sum RowPctSum RowPctSum RowPctSum Treatment Arm ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Placebo Study drug All Šƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒ ƒƒƒƒƒƒ ƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒœ REPPCTN AND REPPCTSUM The syntax and the output is the same as when you use pctn and pctsum. CONCATENATED TABLES Using the lab test data presented at the beginning of this paper, assume we want to create a table like Figure 7 with both Site and Treatment Arm in the same dimension. For a concatenated table, defining the denominator becomes more complicated. In the table statement, we must include an expression in the denominator definition for each expression crossed with PCTN or PCTSUM statistics. Figure 7. Concatenated Tables ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Gender ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ F M ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ Percent Percent of This of This Count Sex Count Sex ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒ Site ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Ex-USA ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒ USA ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒ Treatment Arm ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Placebo ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒ Study drug Šƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒœ As a start, first we need to define the following TABLE statement, Table site trt, sex*n; Now we include the percentage that each cell is of the total for that particular value of SEX.
8 Table site trt, sex*(n, pctn); This implies that crossing exists between dimension expressions: site*sex*pctn and trt*sex*pctn Therefore, we must include an expression in the denominator definition for each of the crossings. Because we want the denominator to be the total for each value of sex (total number of female in the first column, total number of male in second column), we do not want PROC TABULATE to sum across the value of the SEX variable when computing the denominator. We have to remove the sex variable in the above expressions. Now we have SITE and TRT left in the expressions. Below is the SAS code to illustrate this concept: proc tabulate data=test.adlb (where=(paramcd='alt' and avisit='week 4')) format=8.2; class site trt sex; table site='site' trt, sex*(n='count'*f=8. pctn<site trt>='percent of This Sex'); At this point, if we want to include ALL in the table above to display column total which will add a new crossing ALL*SEX in table statement, we must add ALL in the denominator definition. Below is the code (Please note if we do not add ALL in the denominator definition, we will get following error message: ERROR: PctN base is not in table. A PctN crossing has no denominator): proc tabulate data=test.adlb (where=(paramcd='alt' and avisit='week 4')) ; class site trt sex; table site='site' trt all='total for Each Sex', sex*(n='count'*f=8. pctn<site trt all>='percent of This Sex'); The resulting output table: Figure 8. Concatenated Tables with Total ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Gender ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ F M ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ Percent of Percent of Count This Sex Count This Sex ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ Site ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Ex-USA ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ USA ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ Treatment Arm ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Placebo ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ Study drug ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒ Total for Each Sex Šƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒœ
9 COMPUTING PERCENTAGES OF SUBTOTALS So far the percentage we calculated is of totals in the table (for example, column total, row total, page total, etc.). PROC TABULATE can also display percentage of subtotal which means you can define a denominator as any subtotal in your table following this rule: determine which class variable must be summed to form the subtotal you want. As an example, assume we want to see the number of female or male subjects at each visit under different treatment arms at either USA or Ex-USA site, we have following SAS code: options missing=0; proc tabulate data=test.adlb (where=(paramcd='alt')) format=8.2; class site trt sex avisit; table site='site' *(trt all), avisit*(sex all)*n='count'*f=8.; The resulting output is: Figure 9. Count of Subtotals ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Analysis timepoint description ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Week 0 Week 4 ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ Gender Gender ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ F M All F M All ƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒ Count Count Count Count Count Count ƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒ Site Treatment ƒƒƒƒƒƒƒƒƒƒ Arm Ex-USA ƒƒƒƒƒƒƒƒƒƒƒ Placebo Study drug All ƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒ USA Treatment Arm ƒƒƒƒƒƒƒƒƒƒƒ Placebo Study drug All Šƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒœ Now we want a percentage that indicates what portion of the subjects under each visit at a site (USA or Ex-USA) is represented by female or male subjects in each treatment arm at the site. This percentage is the number of subjects in each cell of the table divided by the total number of subjects at each site during each visit. These denominator values are the number underlined in Figure 9.
10 These cells represented subtotals that were obtained by summing the frequency counts over two class variables TRT and SEX. Please note this is done for each SITE and AVISIT. Because the values are not summed over SITE and AVISIT, we shall only include TRT and SEX in the denominator definition. Since the example also involves a concatenated table ALL is concatenated with both TRT and SEX in the table statement, we must include these concatenations in the denominator definition as well (The crossing ALL*ALL can be abbreviated as ALL). Here is the SAS code and the resulting output to illustrate this: options missing=0; proc tabulate data=test.adlb (where=(paramcd='alt')) format=8.2; class site trt sex avisit; table site='site' *(trt all), avisit*(sex all)*pctn<trt*sex trt*all all*sex all>=''; Figure 10. Percentage of Subtotals ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Analysis timepoint description ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Week 0 Week 4 ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ Gender Gender ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ F M All F M All ƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒ Site Treatment ƒƒƒƒƒƒƒƒƒƒ Arm Ex-USA ƒƒƒƒƒƒƒƒƒƒƒ Placebo Study drug All ƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒ USA Treatment Arm ƒƒƒƒƒƒƒƒƒƒƒ Placebo Study drug All Šƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒ ƒƒƒƒƒƒƒƒœ
11 CONCLUSION 1. The TABULATE procedure can calculate the percentages of the total count or sum of analysis variables for individual cells. 2. Use PCTN and PCTSUM to calculate percentage of the grand total; The output is the same as when you use REPPCTN and REPPCTSUM; 3. Use ROWPCTN and ROWPCTSUM to calculate the percentage of row total; 4. Use COLPCTN and COLPCTSUM to calculate the percentage of column total; 5. When calculating complex percentage for concatenated tables, in the table statement include an expression in the denominator definition for each expression crossed with PCTN or PCTSUM statistics. 6. When calculating percentage of subtotal, determine which class variable must be summed to form the subtotal we want. CONTACT INFORMATION Your comments and questions are valued and encouraged. Contact the author at: Name: Wende (Ted) Tian Enterprise: Merck Sharpe & Dohme Corp Address: 126 E Lincoln Ave City, State ZIP: Rahway, NJ Work Phone: Fax: [email protected] Web: Name: Hong (Lily) Zhang Enterprise: Merck Sharpe & Dohme Corp Address: 126 E Lincoln Ave City, State ZIP: Rahway, NJ Work Phone: Fax: [email protected] Web: SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. indicates USA registration. Other brand and product names are trademarks of their respective companies.
Anyone Can Learn PROC TABULATE
Paper 60-27 Anyone Can Learn PROC TABULATE Lauren Haworth, Genentech, Inc., South San Francisco, CA ABSTRACT SAS Software provides hundreds of ways you can analyze your data. You can use the DATA step
The HPSUMMARY Procedure: An Old Friend s Younger (and Brawnier) Cousin Anh P. Kellermann, Jeffrey D. Kromrey University of South Florida, Tampa, FL
Paper 88-216 The HPSUMMARY Procedure: An Old Friend s Younger (and Brawnier) Cousin Anh P. Kellermann, Jeffrey D. Kromrey University of South Florida, Tampa, FL ABSTRACT The HPSUMMARY procedure provides
Simulate PRELOADFMT Option in PROC FREQ Ajay Gupta, PPD, Morrisville, NC
ABSTRACT PharmaSUG 2015 - Paper QT33 Simulate PRELOADFMT Option in PROC FREQ Ajay Gupta, PPD, Morrisville, NC In Pharmaceuticals/CRO industries, table programing is often started when only partial data
Counting the Ways to Count in SAS. Imelda C. Go, South Carolina Department of Education, Columbia, SC
Paper CC 14 Counting the Ways to Count in SAS Imelda C. Go, South Carolina Department of Education, Columbia, SC ABSTRACT This paper first takes the reader through a progression of ways to count in SAS.
Guido s Guide to PROC FREQ A Tutorial for Beginners Using the SAS System Joseph J. Guido, University of Rochester Medical Center, Rochester, NY
Guido s Guide to PROC FREQ A Tutorial for Beginners Using the SAS System Joseph J. Guido, University of Rochester Medical Center, Rochester, NY ABSTRACT PROC FREQ is an essential procedure within BASE
Effective Use of SQL in SAS Programming
INTRODUCTION Effective Use of SQL in SAS Programming Yi Zhao Merck & Co. Inc., Upper Gwynedd, Pennsylvania Structured Query Language (SQL) is a data manipulation tool of which many SAS programmers are
How to build ADaM from SDTM: A real case study
PharmaSUG2010 - Paper CD06 How to build ADaM from SDTM: A real case study JIAN HUA (DANIEL) HUANG, FOREST LABORATORIES, NJ ABSTRACT: Building analysis data based on the ADaM model is highly recommended
SQL SUBQUERIES: Usage in Clinical Programming. Pavan Vemuri, PPD, Morrisville, NC
PharmaSUG 2013 Poster # P015 SQL SUBQUERIES: Usage in Clinical Programming Pavan Vemuri, PPD, Morrisville, NC ABSTRACT A feature of PROC SQL which provides flexibility to SAS users is that of a SUBQUERY.
Pharmaceutical Applications
Integrated Summary of Safety and Efficacy Programming for Studies Using Electronic Data Capture Changhong Shi, Merck & Co., Inc., Rahway, NJ Qing Xue, Merck & Co., Inc., Rahway, NJ ABSTRACT The Integrated
Paper PO06. Randomization in Clinical Trial Studies
Paper PO06 Randomization in Clinical Trial Studies David Shen, WCI, Inc. Zaizai Lu, AstraZeneca Pharmaceuticals ABSTRACT Randomization is of central importance in clinical trials. It prevents selection
The ADaM Solutions to Non-endpoints Analyses
The ADaM Solutions to Non-endpoints Analyses ABSTRACT Chengxin Li, Boehringer Ingelheim Pharmaceuticals Inc., Ridgefield, CT, USA There always exist some analyses for non endpoints in the study. These
PharmaSUG2010 HW06. Insights into ADaM. Matthew Becker, PharmaNet, Cary, NC, United States
PharmaSUG2010 HW06 Insights into ADaM Matthew Becker, PharmaNet, Cary, NC, United States ABSTRACT ADaM (Analysis Dataset Model) is meant to describe the data attributes such as structure, content, and
PROC SUMMARY Options Beyond the Basics Susmita Pattnaik, PPD Inc, Morrisville, NC
Paper BB-12 PROC SUMMARY Options Beyond the Basics Susmita Pattnaik, PPD Inc, Morrisville, NC ABSTRACT PROC SUMMARY is used for summarizing the data across all observations and is familiar to most SAS
Bridging Statistical Analysis Plan and ADaM Datasets and Metadata for Submission
, October 24-26, 2012, San Francisco, USA Bridging Statistical Analysis Plan and ADaM Datasets and Metadata for Submission Abstract In this article, the relationship between the Statistical Analysis Plan
Generating Randomization Schedules Using SAS Programming Chunqin Deng and Julia Graz, PPD, Inc., Research Triangle Park, North Carolina
Paper 267-27 Generating Randomization Schedules Using SAS Programming Chunqin Deng and Julia Graz, PPD, Inc., Research Triangle Park, North Carolina ABSTRACT Randomization as a method of experimental control
ODS for PRINT, REPORT and TABULATE
Paper 3-26 ODS for PRINT, REPORT and TABULATE Lauren Haworth, Genentech, Inc., San Francisco ABSTRACT For most procedures in the SAS system, the only way to change the appearance of the output is to change
Is it statistically significant? The chi-square test
UAS Conference Series 2013/14 Is it statistically significant? The chi-square test Dr Gosia Turner Student Data Management and Analysis 14 September 2010 Page 1 Why chi-square? Tests whether two categorical
Taming the PROC TRANSPOSE
Taming the PROC TRANSPOSE Matt Taylor, Carolina Analytical Consulting, LLC ABSTRACT The PROC TRANSPOSE is often misunderstood and seldom used. SAS users are unsure of the results it will give and curious
Federal Employee Viewpoint Survey Online Reporting and Analysis Tool
Federal Employee Viewpoint Survey Online Reporting and Analysis Tool Tutorial January 2013 NOTE: If you have any questions about the FEVS Online Reporting and Analysis Tool, please contact your OPM point
Salary. Cumulative Frequency
HW01 Answering the Right Question with the Right PROC Carrie Mariner, Afton-Royal Training & Consulting, Richmond, VA ABSTRACT When your boss comes to you and says "I need this report by tomorrow!" do
How to Color Your Report? By Xuefeng Yu, Celgene Co., Summit, NJ
How to Color Your Report? By Xuefeng Yu, Celgene Co., Summit, NJ ABSTRACT A colorful report with highlighted background or bright color numbers will greatly facilitate the reviewer to identify the flags,
Introduction to Proc SQL Steven First, Systems Seminar Consultants, Madison, WI
Paper #HW02 Introduction to Proc SQL Steven First, Systems Seminar Consultants, Madison, WI ABSTRACT PROC SQL is a powerful Base SAS Procedure that combines the functionality of DATA and PROC steps into
Katie Minten Ronk, Steve First, David Beam Systems Seminar Consultants, Inc., Madison, WI
Paper 191-27 AN INTRODUCTION TO PROC SQL Katie Minten Ronk, Steve First, David Beam Systems Seminar Consultants, Inc., Madison, WI ABSTRACT PROC SQL is a powerful Base SAS 7 Procedure that combines the
Using Functions, Formulas and Calculations in SAP BusinessObjects Web Intelligence
Using Functions, Formulas and Calculations in SAP BusinessObjects Web Intelligence SAP BusinessObjects XI 3.1 Service Pack 3 Copyright 2010 SAP AG. All rights reserved.sap, R/3, SAP NetWeaver, Duet, PartnerEdge,
SDTM, ADaM and define.xml with OpenCDISC Matt Becker, PharmaNet/i3, Cary, NC
PharmaSUG 2012 - Paper HW07 SDTM, ADaM and define.xml with OpenCDISC Matt Becker, PharmaNet/i3, Cary, NC ABSTRACT Standards are an ongoing focus of the health care and life science industry. Common terms
Categorical Variables
Categorical Variables Variables which record a response as a set of categories are termed categorical. Such variables fall into three classifications: Nominal, Ordinal, and Interval. Nominal variables
Using Microsoft Excel to Manage and Analyze Data: Some Tips
Using Microsoft Excel to Manage and Analyze Data: Some Tips Larger, complex data management may require specialized and/or customized database software, and larger or more complex analyses may require
Paper PO12 Pharmaceutical Programming: From CRFs to Tables, Listings and Graphs, a process overview with real world examples ABSTRACT INTRODUCTION
Paper PO12 Pharmaceutical Programming: From CRFs to Tables, Listings and Graphs, a process overview with real world examples Mark Penniston, Omnicare Clinical Research, King of Prussia, PA Shia Thomas,
Using the COMPUTE Block in PROC REPORT Jack Hamilton, Kaiser Foundation Health Plan, Oakland, California
Using the COMPUTE Block in PROC REPORT Jack Hamilton, Kaiser Foundation Health Plan, Oakland, California ABSTRACT COMPUTE blocks add a great deal of power to PROC REPORT by allowing programmatic changes
DESCRIPTIVE STATISTICS & DATA PRESENTATION*
Level 1 Level 2 Level 3 Level 4 0 0 0 0 evel 1 evel 2 evel 3 Level 4 DESCRIPTIVE STATISTICS & DATA PRESENTATION* Created for Psychology 41, Research Methods by Barbara Sommer, PhD Psychology Department
Crystal Reports JD Edwards EnterpriseOne and World
Crystal Reports JD Edwards EnterpriseOne and World Calculating Percentages Using Crystal Reports Table of contents INTRODUCTION... 2 GENERAL OVERVIEW... 2 CALCULATING A PERCENTAGE WITHOUT USING A SUMMARY
Permuted-block randomization with varying block sizes using SAS Proc Plan Lei Li, RTI International, RTP, North Carolina
Paper PO-21 Permuted-block randomization with varying block sizes using SAS Proc Plan Lei Li, RTI International, RTP, North Carolina ABSTRACT Permuted-block randomization with varying block sizes using
Building and Customizing a CDISC Compliance and Data Quality Application Wayne Zhong, Accretion Softworks, Chester Springs, PA
WUSS2015 Paper 84 Building and Customizing a CDISC Compliance and Data Quality Application Wayne Zhong, Accretion Softworks, Chester Springs, PA ABSTRACT Creating your own SAS application to perform CDISC
A Recursive SAS Macro to Automate Importing Multiple Excel Worksheets into SAS Data Sets
PharmaSUG2011 - Paper CC10 A Recursive SAS Macro to Automate Importing Multiple Excel Worksheets into SAS Data Sets Wenyu Hu, Merck Sharp & Dohme Corp., Upper Gwynedd, PA Liping Zhang, Merck Sharp & Dohme
Create Custom Tables in No Time
SPSS Custom Tables 17.0 Create Custom Tables in No Time Easily analyze and communicate your results with SPSS Custom Tables, an add-on module for the SPSS Statistics product line Share analytical results
PharmaSUG 2015 - Paper QT26
PharmaSUG 2015 - Paper QT26 Keyboard Macros - The most magical tool you may have never heard of - You will never program the same again (It's that amazing!) Steven Black, Agility-Clinical Inc., Carlsbad,
Introduction to SQL and SQL in R. LISA Short Courses Xinran Hu
Introduction to SQL and SQL in R LISA Short Courses Xinran Hu 1 Laboratory for Interdisciplinary Statistical Analysis LISA helps VT researchers benefit from the use of Statistics Collaboration: Visit our
IBM SPSS Direct Marketing 23
IBM SPSS Direct Marketing 23 Note Before using this information and the product it supports, read the information in Notices on page 25. Product Information This edition applies to version 23, release
ADaM Supplement to the TAUG-Diabetes Version 1.0 (Draft)
ADaM Supplement to the TAUG-Diabetes Version 1.0 (Draft) Prepared by the CFAST Diabetes ADaM Sub-Team Notes to Readers This is the draft version 1.0 of the CDISC ADaM Supplement to the TAUG-Diabetes. It
PharmaSUG 2014 - Paper PO01
ABSTRACT PharmaSUG 2014 - Paper PO01 A User Friendly Tool to Facilitate the Data Integration Process Yang Wang, Seattle Genetics, Inc., Bothell, WA Boxun Zhang, Seattle Genetics, Inc., Bothell, WA For
Histogram of Numeric Data Distribution from the UNIVARIATE Procedure
Histogram of Numeric Data Distribution from the UNIVARIATE Procedure Chauthi Nguyen, GlaxoSmithKline, King of Prussia, PA ABSTRACT The UNIVARIATE procedure from the Base SAS Software has been widely used
Participant Guide RP301: Ad Hoc Business Intelligence Reporting
RP301: Ad Hoc Business Intelligence Reporting State of Kansas As of April 28, 2010 Final TABLE OF CONTENTS Course Overview... 4 Course Objectives... 4 Agenda... 4 Lesson 1: Reviewing the Data Warehouse...
Using the Magical Keyword "INTO:" in PROC SQL
Using the Magical Keyword "INTO:" in PROC SQL Thiru Satchi Blue Cross and Blue Shield of Massachusetts, Boston, Massachusetts Abstract INTO: host-variable in PROC SQL is a powerful tool. It simplifies
From The Little SAS Book, Fifth Edition. Full book available for purchase here.
From The Little SAS Book, Fifth Edition. Full book available for purchase here. Acknowledgments ix Introducing SAS Software About This Book xi What s New xiv x Chapter 1 Getting Started Using SAS Software
Data Management and Analysis for Successful Clinical Research. Lily Wang, PhD Department of Biostatistics Vanderbilt University
Data Management and Analysis for Successful Clinical Research Lily Wang, PhD Department of Biostatistics Vanderbilt University Goals of This Presentation Provide an overview on data management and analysis
Using Macros to Automate SAS Processing Kari Richardson, SAS Institute, Cary, NC Eric Rossland, SAS Institute, Dallas, TX
Paper 126-29 Using Macros to Automate SAS Processing Kari Richardson, SAS Institute, Cary, NC Eric Rossland, SAS Institute, Dallas, TX ABSTRACT This hands-on workshop shows how to use the SAS Macro Facility
Improved Interaction Interpretation: Application of the EFFECTPLOT statement and other useful features in PROC LOGISTIC
Paper AA08-2013 Improved Interaction Interpretation: Application of the EFFECTPLOT statement and other useful features in PROC LOGISTIC Robert G. Downer, Grand Valley State University, Allendale, MI ABSTRACT
Association Between Variables
Contents 11 Association Between Variables 767 11.1 Introduction............................ 767 11.1.1 Measure of Association................. 768 11.1.2 Chapter Summary.................... 769 11.2 Chi
Analysis Data Model (ADaM)
Analysis Data Model (ADaM) Prepared by the CDISC Analysis Data Model Team Notes to Readers This is Version 2.1 of the Analysis Data Model (ADaM) Document. It includes modifications so that it corresponds
Advanced Excel for Institutional Researchers
Advanced Excel for Institutional Researchers Presented by: Sandra Archer Helen Fu University Analysis and Planning Support University of Central Florida September 22-25, 2012 Agenda Sunday, September 23,
Calculating Changes and Differences Using PROC SQL With Clinical Data Examples
Calculating Changes and Differences Using PROC SQL With Clinical Data Examples Chang Y. Chung, Princeton University, Princeton, NJ Lei Zhang, Celgene Corporation, Summit, NJ ABSTRACT It is very common
Data exploration with Microsoft Excel: analysing more than one variable
Data exploration with Microsoft Excel: analysing more than one variable Contents 1 Introduction... 1 2 Comparing different groups or different variables... 2 3 Exploring the association between categorical
Abbas S. Tavakoli, DrPH, MPH, ME 1 ; Nikki R. Wooten, PhD, LISW-CP 2,3, Jordan Brittingham, MSPH 4
1 Paper 1680-2016 Using GENMOD to Analyze Correlated Data on Military System Beneficiaries Receiving Inpatient Behavioral Care in South Carolina Care Systems Abbas S. Tavakoli, DrPH, MPH, ME 1 ; Nikki
EXST SAS Lab Lab #4: Data input and dataset modifications
EXST SAS Lab Lab #4: Data input and dataset modifications Objectives 1. Import an EXCEL dataset. 2. Infile an external dataset (CSV file) 3. Concatenate two datasets into one 4. The PLOT statement will
Chapter 6 INTERVALS Statement. Chapter Table of Contents
Chapter 6 INTERVALS Statement Chapter Table of Contents OVERVIEW...217 GETTING STARTED...218 ComputingStatisticalIntervals...218 ComputingOne-SidedLowerPredictionLimits...220 SYNTAX...222 SummaryofOptions...222
Commission Formula. Value If True Parameter Value If False Parameter. Logical Test Parameter
Excel Review This review uses material and questions from Practice Excel Exam 1 found on the Lab Exam 2 Study Guide webpage. Print out a copy of Practice Excel Exam 1. Download the Practice Excel Exam
THE POWER OF PROC FORMAT
THE POWER OF PROC FORMAT Jonas V. Bilenas, Chase Manhattan Bank, New York, NY ABSTRACT The FORMAT procedure in SAS is a very powerful and productive tool. Yet many beginning programmers rarely make use
Report Customization Using PROC REPORT Procedure Shruthi Amruthnath, EPITEC, INC., Southfield, MI
Paper SA12-2014 Report Customization Using PROC REPORT Procedure Shruthi Amruthnath, EPITEC, INC., Southfield, MI ABSTRACT SAS offers powerful report writing tools to generate customized reports. PROC
SAS UNIX-Space Analyzer A handy tool for UNIX SAS Administrators Airaha Chelvakkanthan Manickam, Cognizant Technology Solutions, Teaneck, NJ
PharmaSUG 2012 Paper PO11 SAS UNIX-Space Analyzer A handy tool for UNIX SAS Administrators Airaha Chelvakkanthan Manickam, Cognizant Technology Solutions, Teaneck, NJ ABSTRACT: In the fast growing area
PO-18 Array, Hurray, Array; Consolidate or Expand Your Input Data Stream Using Arrays
Array, Hurray, Array; Consolidate or Expand Your Input Data Stream Using Arrays, continued SESUG 2012 PO-18 Array, Hurray, Array; Consolidate or Expand Your Input Data Stream Using Arrays William E Benjamin
Emailing Automated Notification of Errors in a Batch SAS Program Julie Kilburn, City of Hope, Duarte, CA Rebecca Ottesen, City of Hope, Duarte, CA
Emailing Automated Notification of Errors in a Batch SAS Program Julie Kilburn, City of Hope, Duarte, CA Rebecca Ottesen, City of Hope, Duarte, CA ABSTRACT With multiple programmers contributing to a batch
Excel: Introduction to Formulas
Excel: Introduction to Formulas Table of Contents Formulas Arithmetic & Comparison Operators... 2 Text Concatenation... 2 Operator Precedence... 2 UPPER, LOWER, PROPER and TRIM... 3 & (Ampersand)... 4
Methodologies for Converting Microsoft Excel Spreadsheets to SAS datasets
Methodologies for Converting Microsoft Excel Spreadsheets to SAS datasets Karin LaPann ViroPharma Incorporated ABSTRACT Much functionality has been added to the SAS to Excel procedures in SAS version 9.
How to Create Variables Related to Age Joyce Gui and Shaoan Yu Merck & Company, Rahway, NJ
Paper SBC 131 How to Create Variables Related to Age Joyce Gui and Shaoan Yu Merck & Company, Rahway, NJ ABSTRACT A derived variable not explicitly included in a domain model is permissible to be used
The entire SAS code for the %CHK_MISSING macro is in the Appendix. The full macro specification is listed as follows: %chk_missing(indsn=, outdsn= );
Macro Tabulating Missing Values, Leveraging SAS PROC CONTENTS Adam Chow, Health Economics Resource Center (HERC) VA Palo Alto Health Care System Department of Veterans Affairs (Menlo Park, CA) Abstract
Part 3. Comparing Groups. Chapter 7 Comparing Paired Groups 189. Chapter 8 Comparing Two Independent Groups 217
Part 3 Comparing Groups Chapter 7 Comparing Paired Groups 189 Chapter 8 Comparing Two Independent Groups 217 Chapter 9 Comparing More Than Two Groups 257 188 Elementary Statistics Using SAS Chapter 7 Comparing
Graphing Made Easy for Project Management
Paper 7300-2016 Graphing Made Easy for Project Management Zhouming (Victor) Sun, AZ/Medimmune Corp., Gaithersburg, MD ABSTRACT Project management is a hot topic across many industries, and there are multiple
IBM SPSS Statistics 20 Part 1: Descriptive Statistics
CALIFORNIA STATE UNIVERSITY, LOS ANGELES INFORMATION TECHNOLOGY SERVICES IBM SPSS Statistics 20 Part 1: Descriptive Statistics Summer 2013, Version 2.0 Table of Contents Introduction...2 Downloading the
IBM SPSS Direct Marketing 22
IBM SPSS Direct Marketing 22 Note Before using this information and the product it supports, read the information in Notices on page 25. Product Information This edition applies to version 22, release
Common Misunderstandings about ADaM Implementation
PharmaSUG 2012 - Paper DS16 Common Misunderstandings about ADaM Implementation Nate Freimark, Theorem Clinical Research, King of Prussia, PA Susan Kenny, Amgen Inc, Thousand Oaks, CA Jack Shostak, Duke
Bivariate Statistics Session 2: Measuring Associations Chi-Square Test
Bivariate Statistics Session 2: Measuring Associations Chi-Square Test Features Of The Chi-Square Statistic The chi-square test is non-parametric. That is, it makes no assumptions about the distribution
Using Excel for Statistics Tips and Warnings
Using Excel for Statistics Tips and Warnings November 2000 University of Reading Statistical Services Centre Biometrics Advisory and Support Service to DFID Contents 1. Introduction 3 1.1 Data Entry and
Integrating Data and Business Rules with a Control Data Set in SAS
Paper 3461-2015 Integrating Data and Business Rules with a Data Set in SAS Edmond Cheng, CACI International Inc. ABSTRACT In SAS software development, data specifications and process requirements can be
Using functions, formulas and calculations in Web Intelligence SAP BusinessObjects Business Intelligence Suite 4.0 Feature Pack 3
Using functions, formulas and calculations in Web Intelligence SAP BusinessObjects Business Intelligence Suite 4.0 Feature Pack 3 Copyright 2011 SAP AG. All rights reserved.sap, R/3, SAP NetWeaver, Duet,
WHITE PAPER. CONVERTING SDTM DATA TO ADaM DATA AND CREATING SUBMISSION READY SAFETY TABLES AND LISTINGS. SUCCESSFUL TRIALS THROUGH PROVEN SOLUTIONS
WHITE PAPER CONVERTING SDTM DATA TO ADaM DATA AND CREATING SUBMISSION READY SAFETY TABLES AND LISTINGS. An innovative approach to deliver statistical analysis and data in a CDISC ADaM complient manner
SAS to Excel with ExcelXP Tagset Mahipal Vanam, Kiran Karidi and Sridhar Dodlapati
PharmaSUG2010 - Paper CC22 SAS to Excel with ExcelXP Tagset Mahipal Vanam, Kiran Karidi and Sridhar Dodlapati ABSTRACT Creating XML based excel files is a very convenient and powerful feature of SAS 9
Creating Basic Excel Formulas
Creating Basic Excel Formulas Formulas are equations that perform calculations on values in your worksheet. Depending on how you build a formula in Excel will determine if the answer to your formula automatically
Blood Type Probability O 0.42 A 0.43 B 0.11 AB 0.04
PubH 6414 Worksheet 5a: Probability Principles 1 of 6 Example 1: Distribution of Blood Types in the US Blood Type Probability O 0.42 A 0.43 B 0.11 AB 0.04 Use the distribution of blood types in the US
About PivotTable reports
Page 1 of 8 Excel Home > PivotTable reports and PivotChart reports > Basics Overview of PivotTable and PivotChart reports Show All Use a PivotTable report to summarize, analyze, explore, and present summary
Excel 2003 A Beginners Guide
Excel 2003 A Beginners Guide Beginner Introduction The aim of this document is to introduce some basic techniques for using Excel to enter data, perform calculations and produce simple charts based on
PharmaSUG 2015 - Paper DV05
PharmaSUG 2015 - Paper DV05 Techniques of Preparing Datasets for Visualizing Clinical Laboratory Data Amos Shu, MedImmune, Gaithersburg, MD Victor Sun, MedImmune, Gaithersburg, MD ABSTRACT Visualizing
Methods for Interaction Detection in Predictive Modeling Using SAS Doug Thompson, PhD, Blue Cross Blue Shield of IL, NM, OK & TX, Chicago, IL
Paper SA01-2012 Methods for Interaction Detection in Predictive Modeling Using SAS Doug Thompson, PhD, Blue Cross Blue Shield of IL, NM, OK & TX, Chicago, IL ABSTRACT Analysts typically consider combinations
Unit 31 A Hypothesis Test about Correlation and Slope in a Simple Linear Regression
Unit 31 A Hypothesis Test about Correlation and Slope in a Simple Linear Regression Objectives: To perform a hypothesis test concerning the slope of a least squares line To recognize that testing for a
Customizing FREQ Procedure Output in SAS 9.2
Technical Paper Customizing FREQ Procedure Output in SAS 9.2 Introducing the new crosstabulation table template for multi-way tables and SAS ODS Graphics options Table of Contents Introduction...1 The
PROC LOGISTIC: Traps for the unwary Peter L. Flom, Independent statistical consultant, New York, NY
PROC LOGISTIC: Traps for the unwary Peter L. Flom, Independent statistical consultant, New York, NY ABSTRACT Keywords: Logistic. INTRODUCTION This paper covers some gotchas in SAS R PROC LOGISTIC. A gotcha
Excel 2007 A Beginners Guide
Excel 2007 A Beginners Guide Beginner Introduction The aim of this document is to introduce some basic techniques for using Excel to enter data, perform calculations and produce simple charts based on
Intro to Longitudinal Data: A Grad Student How-To Paper Elisa L. Priest 1,2, Ashley W. Collinsworth 1,3 1
Intro to Longitudinal Data: A Grad Student How-To Paper Elisa L. Priest 1,2, Ashley W. Collinsworth 1,3 1 Institute for Health Care Research and Improvement, Baylor Health Care System 2 University of North
Data Analysis with Microsoft Excel 2003
Data Analysis with Microsoft Excel 2003 Working with Lists: Microsoft Excel is an excellent tool to manage and manipulate lists. With the information you have in a list, you can sort and display data that
Different ways of calculating percentiles using SAS Arun Akkinapalli, ebay Inc, San Jose CA
Different ways of calculating percentiles using SAS Arun Akkinapalli, ebay Inc, San Jose CA ABSTRACT Calculating percentiles (quartiles) is a very common practice used for data analysis. This can be accomplished
Christianna S. Williams, University of North Carolina at Chapel Hill, Chapel Hill, NC
Christianna S. Williams, University of North Carolina at Chapel Hill, Chapel Hill, NC ABSTRACT Have you used PROC MEANS or PROC SUMMARY and wished there was something intermediate between the NWAY option
Can SAS Enterprise Guide do all of that, with no programming required? Yes, it can.
SAS Enterprise Guide for Educational Researchers: Data Import to Publication without Programming AnnMaria De Mars, University of Southern California, Los Angeles, CA ABSTRACT In this workshop, participants
PharmaSUG 2013 - Paper AD08
PharmaSUG 2013 - Paper AD08 Just Press the Button Generation of SAS Code to Create Analysis Datasets directly from an SAP Can it be Done? Endri Endri, Berlin, Germany Rowland Hale, inventiv Health Clinical,
STEP TWO: Highlight the data set, then select DATA PIVOT TABLE
STEP ONE: Enter the data into a database format, with the first row being the variable names, and each row thereafter being one completed survey. For this tutorial, highlight this table, copy and paste
Paper TU_09. Proc SQL Tips and Techniques - How to get the most out of your queries
Paper TU_09 Proc SQL Tips and Techniques - How to get the most out of your queries Kevin McGowan, Constella Group, Durham, NC Brian Spruell, Constella Group, Durham, NC Abstract: Proc SQL is a powerful
