aspire workshop 5: data collection...

102
ASPIRE Workshop 5: Data Collection Tools Lauren Heath, PharmD Research Fellow University of Colorado Skaggs School of Pharmacy and Pharmaceutical Sciences & Kaiser Permanente Colorado

Upload: ngothien

Post on 28-Mar-2018

214 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

ASPIRE Workshop 5: Data Collection ToolsLauren Heath, PharmD Research Fellow University of Colorado Skaggs School of Pharmacy and Pharmaceutical Sciences & Kaiser Permanente Colorado

Page 2: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Outline

Data management techniques using Microsoft Excel®– Note: we will be using Microsoft Excel 2013 for PC

Tools for statistical analysis

Data collection tools

Develop your data collection tool

2

Page 3: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

DATA MANAGEMENT

Page 4: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Quick Excel® Tips ‘N Tricks

Excel does not treat blank cells as zero If there are blank cells and you are performing a function on

these cells, use “” to indicate blank If referring to words in an Excel formula, such as counting the

number of females, enter the words in quotes, i.e. “female” If intend to copy your formula and apply it down an entire

column and do not want the cells references in a formula to change, use the $ sign:

– For example: A$1:B$88 vs. A1: B88

4

Page 5: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Basic Spreadsheet Manipulation

Using the data fill handle – Task: enter “4” into HF clinic duration and use the fill handle

to drag down 10 cells (then undo)

5

Hold mouse over bottom right corner until a ‘+’ forms. This is the fill handle.

Page 6: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Basic Spreadsheet Manipulation

Using the data fill handle

6

Page 7: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Basic Spreadsheet Manipulation

Select the entire column/row/spreadsheet– Task 1: select row 3 of the spreadsheet

7

Select the number 3 on the left. A black arrow should form.

Page 8: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Basic Spreadsheet Manipulation

Select the entire column/row/spreadsheet– Task 2: select column D of the spreadsheet

8

Select column D at the top. A black arrow should form.

Page 9: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Basic Spreadsheet Manipulation

Select the entire column/row/spreadsheet– Task 3: select the entire spreadsheet

9

Select the top left corner where there is a triangle. A white plus sign should form.

Page 10: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Basic Spreadsheet Manipulation

Paste special: can retain formatting or formulas when copy/paste– Task: copy the first 5 columns and first 10 rows, then use

paste special to retain values and source formulas

10

Page 11: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Basic Spreadsheet Manipulation

Paste special: can retain formatting or formulas when copy/paste– Task: copy the first 5 columns and first 10 rows, then use paste special to

retain values and source formulas

11

Select values & source formatting (E)

Page 12: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Freeze Panes(s) in a Dataset

Task: freeze top row of dataset

12

Page 13: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Freeze Panes(s) in a Dataset

Task: freeze both top row and first column of dataset

13

Select first cell next to the column and row of interest (in this case, cell B2)

Page 14: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Freeze Panes(s) in a Dataset

Task: freeze both top row and first column of dataset

14

While B2 is selected, select freeze panes

Page 15: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Formatting Cells

Task: format column F (discharge date) as a date (mm/dd/yy)

15

Select all of column F

Page 16: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Formatting Cells

Task: format column F (discharge date) as a date (mm/dd/yy)

16

Right click on the column and select format cells

Page 17: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Formatting Cells

Task: format column F (discharge date) as a date (mm/dd/yy)

17

Select date and choose the desired formatting option. Click OK to accept.

Page 18: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Formatting Cells

Task: format column F (discharge date) as a date (mm/dd/yy)

18

Formatted dates

Page 19: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Formatting Cells

Task: Custom format ID (column A) to include 3 digits

19

Select all of column A

Page 20: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Formatting Cells

Task: Custom format ID (column A) to include 3 digits

20

Right click on the column and select format cells

Page 21: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Formatting Cells

Task: Custom format ID (column A) to include 3 digits

21

Select custom format and option to include 3 figures without a decimal point. Replace # signs with zeros.

Page 22: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Formatting Cells

Task: Custom format ID (column A) to include 3 digits

22

Formatted IDs to all include 3 digits

Page 23: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Formatting Cells

Task: highlight the row for patient number 147 (row 9) in red

23

Page 24: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Formatting Cells

Task: highlight the row for patient number 147 (row 9) in red

24

Page 25: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Formatting Cells

Task: highlight the row for patient number 147 (row 9) in red

25

Page 26: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Formatting Cells

Task: highlight the row for patient number 147 (row 9) in red

26

Patient 147 highlighted in red

Page 27: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Formatting Cells

Task: change columns P, Q, R (SBP, DBP, HR) to be vertical or horizontal

27

Page 28: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Formatting Cells

Task: change columns P, Q, R (SBP, DBP, HR) to be vertical or horizontal

28

Page 29: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Formatting Cells

Task: change columns P, Q, R (SBP, DBP, HR) to be vertical or horizontal

29

Enter 90 degrees orientation for vertical text or 180 degrees orientation for horizontal

Page 30: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Format as a Table

Task: change excel spreadsheet to a table

30

Make desired selection for table style or customize

Page 31: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Format as a Table

Task: change excel spreadsheet to a table

31

If do not select this, Excel will add headers to your table

Page 32: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Conditional Formatting

Task: use conditional formatting to shade cells in “metoprolol equivalent_discharge” (column N) with value >100 in green

32

Conditional formatting is under the home tab

Page 33: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Conditional Formatting

Task: use conditional formatting to shade cells in “metoprolol equivalent_discharge” (column N) with value >100 in green

33

Select format

Page 34: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Conditional Formatting

Task: use conditional formatting to shade cells in “metoprolol equivalent_discharge” (column N) with value >100 in green

34

Select green and OK

Page 35: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Conditional Formatting

Task: use conditional formatting to shade cells in “metoprolol equivalent_discharge” (column N) with value >100 in green

35

Cells with values >100 are highlighted in green

Page 36: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Data Validation

Task: create a column after “HF clinic duration” for “smoking status” with the following choices: current, past, never

36

Highlight entire column next to HF clinic duration. Right click and select insert.

Page 37: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Data Validation

Task: create a column after “HF clinic duration” for “smoking status” with the following choices: current, past, never

37

Page 38: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Data Validation

Task: create a column after “HF clinic duration” for “smoking status” with the following choices: current, past, never

38

Page 39: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Data Validation

Task: create a column after “HF clinic duration” for “smoking status” with the following choices: current, past, never

39

Page 40: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Data Validation

Task: create a column after “HF clinic duration” for “smoking status” with the following choices: current, past, never

40

Dropdown menu for selection with current, past, never

Page 41: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Data Validation

Task: change columns “SBP” and “DBP” to only allow numbers

41

Page 42: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Data Validation

Task: change columns “SBP” and “DBP” to only allow numbers

42

Page 43: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Data Validation

Task: change columns “SBP” and “DBP” to only allow numbers

43

Set criteria specific to expected values in that column

Page 44: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Data Validation

Task: Exploration

44

Message will appear before user enters any information

Page 45: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Data Validation

Task: Exploration

45

Stop will prevent user from entering incorrect information. Warning will warn the user (can include a message) and requires that the user okay entering invalidated information.

Page 46: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Basic Excel Functions

Task: calculate the mean, maximum and minimum age

46

Select cell where you would like to insert the function

Page 47: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Basic Excel Functions

Task: calculate the mean, maximum and minimum age

47

You can also search for functions

Page 48: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Basic Excel Functions

Task: calculate the mean, maximum and minimum age

48

Enter or select your desired data range. Could also enter values individually in the number boxes

Click on this box to select your data range (instead of typing the range)

Page 49: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Basic Excel Functions

Task: calculate the mean, maximum and minimum age

49

Calculated mean, maximum, and minimum ages in dataset.

Page 50: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

CountIF and CountIFS

Task: count the number of females in the sample using Countif

50

Select cell where you would like to insert the function

Page 51: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

CountIF and CountIFS

Task: count the number of females in the sample using Countif

51

Page 52: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

CountIF and CountIFS

Task: count the number of females in the sample using Countif

52

If counting something that is a word or letter, put in double quotes

Page 53: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

CountIF and CountIFS

Task: count the number of females in the sample using Countif

53

Total number of female patients in the dataset.

Page 54: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

CountIF and CountIFS

Task: count the number of females > 80 years old in the sample using Countifs

54

Select cell where you would like to insert the function

Page 55: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

CountIF and CountIFS

Task: count the number of females > 80 years old in the sample using Countifs

55

Page 56: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

CountIF and CountIFS

Task: count the number of females > 80 years old in the sample using Countifs

56

Use >= to denote “greater than or equal to”

Page 57: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

CountIF and CountIFS

Task: count the number of females > 80 years old in the sample using Countifs

57

Number of female patients greater than or equal to 80 years old.

Page 58: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

IF Statements

Task: insert a column after “BL_EF_actual” called “LVSD_BL” that displays a value of 1 if the patient’s EF is <40% and 0 if EF is >40%, and blank if the EF is not available

58

I typically enter the formula into one cell first, then drag down to the rest of the cells (if applicable) later

Page 59: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

IF Statements

Task: insert a column after “BL_EF_actual” called “LVSD_BL” that displays a value of 1 if the patient’s EF is <40% and 0 if EF is >40%, and blank if the EF is not available

59

Page 60: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

IF Statements

Task: insert a column after “BL_EF_actual” called “LVSD_BL” that displays a value of 1 if the patient’s EF is <40% and 0 if EF is >40%, and blank if the EF is not available

60

Since there are missing EF values in column I, need to embed an IF statement using “” to denote blank

Page 61: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

IF Statements

Task: insert a column after “BL_EF_actual” called “LVSD_BL” that displays a value of 1 if the patient’s EF is <40% and 0 if EF is >40%, and blank if the EF is not available

61

Second IF statement indicating to show a 1 if I2<40, or otherwise to show a 0

Page 62: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

IF Statements

Task: insert a column after “BL_EF_actual” called “LVSD_BL” that displays a value of 1 if the patient’s EF is <40% and 0 if EF is >40%, and blank if the EF is not available

62

=IF(I2="","",IF(I2<40, 1, 0))Final IF formula:

This could be read as: IF I2 is blank, then insert blank. Otherwise, if I2 is less than 40 insert 1. Otherwise (if I2 is NOT less than 40), insert 0.

When this formula is dragged down the column, I2 will change to refer to I3, then I4, etc.

Page 63: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Vlookup

Task: insert a column after the one you just created (LVSD_BL) that includes the discharge EF data available in Sheet 1

63

Page 64: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Vlookup

Task: insert a column after the one you just created (LVSD_BL) that includes the discharge EF data available in Sheet 1

64

Page 65: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Vlookup

Task: insert a column after the one you just created (LVSD_BL) that includes the discharge EF data available in Sheet 1

65

References the first “linking” cell (ID) that is present in both datasetsAll cells of the second spreadsheet (Sheet1) – this is where the formula will search for values

In Sheet1, column B or the second column, contains the new values we want to insert into the cohort spreadsheetFalse indicates that we want to find an exact match.

Page 66: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Vlookup

Task: insert a column after the one you just created (LVSD_BL) that includes the discharge EF data available in Sheet 1

66

=VLOOKUP(A2,Sheet1!A$2:B$51,2,FALSE)Final formula:

Note that in Sheet1 there are only 51 patients with a follow-up EF whereas there are 223 patients in the cohort. Therefore, when this formula is applied to other cells, many will show “#N/A” which means not available.

Page 67: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Pivot Tables

Task: Display gender by COPD status in a separate worksheet

67

Page 68: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Pivot Tables

Task: Display gender by COPD status in a separate worksheet

68

Page 69: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Pivot Tables

Task: Display gender by COPD status in a separate worksheet

69

Page 70: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Pivot Tables

Task: Display mean metoprolol equivalent dose at discharge by COPD status

70

Page 71: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Pivot Tables

Task: Display mean metoprolol equivalent dose at discharge by COPD status

71

Page 72: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Pivot Tables

Task: Display mean metoprolol equivalent dose at discharge by COPD status

72

Page 73: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Pivot Tables

Task: Display mean metoprolol equivalent dose at discharge by COPD status

73

Page 74: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Pivot Tables

Task: display mean SBP by beta blocker agent at discharge, then limit to just patients receiving metoprolol

74

Page 75: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Pivot Tables

Task: display mean SBP by beta blocker agent at discharge, then limit to just patients receiving metoprolol

75

Page 76: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Pivot Tables

Task: display mean SBP by beta blocker agent at discharge, then limit to just patients receiving metoprolol

76

Page 77: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Pivot Tables

Task: display mean SBP by beta blocker agent at discharge, then limit to just patients receiving metoprolol

77

Select the dropdown arrow to view filter options

Page 78: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Pivot Tables

Task: display mean SBP by beta blocker agent at discharge, then limit to just patients receiving metoprolol

78

Page 79: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Statistical Tests

Options for Statistical Tests (if you don’t have access to a biostatistician/analyst)

– Many basic statistical tests can be performed in Excel

– Learn to use some of the open source or free software “R” is very common and robust: https://www.r-project.org/ “PSPP”, open source similar to SPSS:

https://www.gnu.org/software/pspp/get.html If you are affiliated with a University, you may have free access to some

statistical software – For example, SAS University Edition (SAS Studio), JMP

79

Page 80: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Data Analysis Toolpak

To activate: file options add-ins

80

Go to manage Excel add-ins and select the analysis toolpak to activate

If activated, you can select the analysis toolpak options under “data” by selecting data analysis

Page 81: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Statistical tests in Excel: T-test

Task: compare age in the COPD versus non-COPD patients

81

If using the basic t-test (not the analysis toolpak), suggest setting up desired data in two columns in a separate sheet.

Page 82: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

82

Statistical tests in Excel: T-test

Task: compare age in the COPD versus non-COPD patients

Go to formulas insert function select “ttest”

Page 83: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

83

Statistical tests in Excel: T-test

Task: compare age in the COPD versus non-COPD patients

Array1: range of data for COPD patientsArray2: range of data for Non-COPD patientsTails: 2 means two-tailed test; use 1 if want a one-tailed testType: select 1 for paired data, 2 if equal variance, and 3 for unequal variance

Page 84: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

84

Statistical tests in Excel: T-test

Task: compare age in the COPD versus non-COPD patients

P-value

Page 85: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

85

Statistical tests in Excel: T-test

Task: compare age in the COPD versus non-COPD patients– Other option: t-test using analysis toolpak

Data data analysis select desired t-test

Page 86: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

86

Statistical tests in Excel: T-test

Task: compare age in the COPD versus non-COPD patients– Other option: t-test using analysis toolpak

Select range of age data for COPD and non-COPD.

Option to change alpha level.

Page 87: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

87

Statistical tests in Excel: T-test

Task: compare age in the COPD versus non-COPD patients– Other option: t-test using analysis toolpak

P-value for two-sided t-test

Page 88: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Statistical tests in Excel: Chi-Square test

Task: compare the number of males and females in each group– Step 1: create a 2 x 2 contingency table with observed values

88

Create using a pivot table or by hand. Need to count number of males and females in each group, and enter into the table. Also need to add up the total in each row, column, and overall total.

Page 89: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Statistical tests in Excel: Chi-Square test

Task: compare the number of males and females in each group– Step 2: create a 2 x 2 contingency table with expected values

89

Copy expected table, including totals. Then delete observed values.

Page 90: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Statistical tests in Excel: Chi-Square test

Task: compare the number of males and females in each group– Step 2: create a 2 x 2 contingency table with expected values

90

Fill in expected values: formula = ((row total x column total)/grand total)

A = (155*86/223) C = (86*68/223)B = (155*137/223) D = (137*68/223)

Page 91: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Statistical tests in Excel: Chi-Square test

Task: compare the number of males and females in each group– Step 2: create a 2 x 2 contingency table with expected values

91

Page 92: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Statistical tests in Excel: Chi-Square test

Task: compare the number of males and females in each group– Step 3: execute chi-square test

92

Go to formulas insert function select “chitest”

Page 93: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Statistical tests in Excel: Chi-Square test

Task: compare the number of males and females in each group– Step 3: execute chi-square test

93

Observed values from first table

Expected values from second table

Page 94: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Statistical tests in Excel: Chi-Square test

Task: compare the number of males and females in each group

94

Page 95: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

DATA COLLECTION TOOLS

Page 96: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Examples of Data Collection Tools

Centralized database – Ex. Redcap: https://projectredcap.org/– HIPAA compliant, with online and offline

data capture capabilities – Allows for data validation, branching logic, basic calculations, and can

export entered data to most statistical packages

Spreadsheet-based, e.g. Excel

96

Page 97: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Excel as a Data Collection Tool

Keep in mind what you will be doing with the spreadsheet after entering the data

– Consider how to enter data to make analysis easier

Suggestions to consider:– Better to enter more “raw” data, and perform calculations in Excel

For example, if calculating length of stay: create a column for admission date and discharge date, then calculate difference in dates in another column

– Enter data into Excel cell in a usable form Can use a separate data dictionary to code entries

– Avoid entering more than one data point into the same cell Cannot perform calculations

– Employ data validation techniques to avoid errors97

Page 98: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Importance of Creating a Good Data Collection Tool to Minimize Possible Errors

98

http://www.economist.com/blogs/graphicdetail/2016/09/daily-chart-3.Accessed September 24, 2016.

Page 99: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic
Page 100: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Acknowledgements

Thank you to Sarah Billups, PharmD, BCPS

100

Page 101: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

Now…work on your data collection tool

If time allows during the session…

– Split into groups of 2-3 – Revise your data collection tool employing principles

discussed today – Review and provide feedback to your partner(s) about their

tool

101

Page 102: ASPIRE Workshop 5: Data Collection Toolsaspirekpco.weebly.com/uploads/1/5/9/3/15930538/heathl_aspire... · ASPIRE Workshop 5: Data Collection Tools ... enter “4” into HF clinic

ASPIRE Workshop 5: Data Collection ToolsLauren Heath, PharmD Research Fellow University of Colorado Skaggs School of Pharmacy and Pharmaceutical Sciences & Kaiser Permanente Colorado