data journalism 101 by michael j. berens - dekalb, illinois, newstrain - oct. 29-30, 2015

31
DATA JOURNALISM 101 MICHAEL J. BERENS | CHICAGO TRIBUNE | @MJBERENS1 1

Upload: apmes-newstrain

Post on 12-Apr-2017

334 views

Category:

Data & Analytics


1 download

TRANSCRIPT

Page 1: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

DATA JOURNALISM 101

MICHAEL J. BERENS | CHICAGO TRIBUNE | @MJBERENS1

1

Page 2: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

2

The Death Ray No piece of information

is insignificant

Page 3: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

3

The Death Ray

Page 4: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

4

How to request data

1 – Fixed-width

2 - Delimited

Page 5: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

5

Preferred format:

Comma-delimited text file

Page 6: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

COMMA DELIMITED “RAW” DATA

6

Text for slides is ARIAL (BODY)

36 PT

Page 7: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

7

File layout

(secret weapon to finding

stories)

Page 8: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

FIELDS, POSITION, TYPE, LENGTH

Field

Number Variable Type Format Label Comment

1 SEQ_NO Char $10. Sequence Number

Unique sequence number assigned to each record within a year. First four digits

are the year of discharge.

2 REC_KEY Num 11. Record Key Unique number assigned to each CHARS record. Added in 2003.

3 STAYTYPE Char $1 Type of Stay

1 = Inpatient

2 = Observation patient

4 HOSPITAL Char $4 Hospital Number

DOH assigned hospital number.

Fourth character describes the Medicare certified unit type with:

blank = acute care

R = Rehabilitation unit

P = Psychiatric unit

S = Swing bed unit

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

A = Alcohol (discontinued after 1992)

B = Bone marrow transplants (discontinued after 2000)

E = Extended care (discontinued after 2001)

H = Tacoma General & Group Health combined (discontinued after 1992)

I = Group Health only at Tacoma General (discontinued after 1992)

5 LINENO Num 3. Number of Reported Revenue Items Codes

6 ZIPCODE Char $5 Patient's Zip Code

99999 indicates the zip code is unknown.

99998 indicates homelessness (some homeless patients may have a zip code for a shelter or

other temporary location).

Blanks indicate non-U.S. residence.

7 STATERES Char $2 State of Residence

State abbreviation used by U.S. Postal Service.

This is assigned from the zip code.

Residents with zip code 99998 are assigned to Washington

XX = invalid zip code or a non-U.S. residence.

Page 9: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015
Page 10: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

FINDING

STORIES THAT

LURK IN CODE

KEYS

Page 11: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015
Page 12: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

REPORTING TIP

Make a master copy

12

Page 13: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

REPORTING TIP

Keep a log

13

Page 14: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

DELIMITED FILE

14

Text for slides is ARIAL (BODY)

36 PT

Page 15: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

HUNTING DATABASE

15

Text for slides is ARIAL (BODY)

36 PT

Page 16: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

OTHER TYPES OF DELIMITERS

16

Page 17: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

FIXED WIDTH

17

Page 18: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

FIXED WIDTH

18

Page 20: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

SEARCHING FOR MICROSOFT

20

Page 21: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

CSV = EXCEL FORMAT

21

Page 22: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

INSTANT DATABASE

17,583 RECORDS

22

Page 23: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

FDA.GOV

23

FDA.GOV

Page 24: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

24

Page 25: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

WEB SCRAPING – COPY / PASTE

25

Page 26: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

WORKING

WITH DATA

SORT * FILTER * CALCULATIONS

Page 27: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

THE TIP

It’s hunting season, again, and your editor wants a

daily story about this seasonal rite of passage.

What is the most common type of injury?

What day was the deadliest for hunters?

How often is impairment (drugs / alcohol) a factor?

And dozens of other questions

“Interview the data”

Page 28: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

HUNTING DATABASE

Page 29: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

THE TIP

•Sources say that football coaches routinely

earn higher salaries than the most experienced

teachers.

•Anecdotally, it appears to be true, but other

sources say it’s an isolated issue.

•How do you attack the story and QUANTIFY

the issue conclusively – avoiding the he said,

she said conundrum?

Page 30: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

CALCULATIONS

Page 31: Data Journalism 101 by Michael J. Berens - DeKalb, Illinois, NewsTrain - Oct. 29-30, 2015

Don’t be

obsolete.

Journalism is a

continuing-

education job.

31