Top Banner
Presenting at
16

Presenting at the SAS SUCCESS User Group · •e.g. John and Jane in the sashelp class dataset sound phonically similar according to Soundex proc sql; select a.name as name1, b.name

Aug 25, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Presenting at the SAS SUCCESS User Group · •e.g. John and Jane in the sashelp class dataset sound phonically similar according to Soundex proc sql; select a.name as name1, b.name

Presenting at

Page 2: Presenting at the SAS SUCCESS User Group · •e.g. John and Jane in the sashelp class dataset sound phonically similar according to Soundex proc sql; select a.name as name1, b.name

Why is it that people don’t like to present?

Image from: http://blog.mbabasecamp.com/wp-content/uploads/2012/07/9-giving-a-presentation.jpeg

Page 3: Presenting at the SAS SUCCESS User Group · •e.g. John and Jane in the sashelp class dataset sound phonically similar according to Soundex proc sql; select a.name as name1, b.name

Potential barriers to presenting

• “What’s in it for me?”

• What do I talk about?

• “I don’t know enough”

• Time / effort to make a presentation

• Nervous about presenting…expectations…

• Uh… how about Matt’s expectations?

• Others…?

Image from http://levelupliving.com/how-common-is-the-fear-of-public-speaking/

Presenting at eSUG J. Prins

Page 4: Presenting at the SAS SUCCESS User Group · •e.g. John and Jane in the sashelp class dataset sound phonically similar according to Soundex proc sql; select a.name as name1, b.name

• Add/gain value by working using SGF and SUGI papers

• Learn something new at SUCCESS meetings

• Improve your presentation skills

• Contribute to a stronger and more vibrant local SAS user group

Image from: cyberlearningmauritius.org Presenting at eSUG J. Prins

Page 5: Presenting at the SAS SUCCESS User Group · •e.g. John and Jane in the sashelp class dataset sound phonically similar according to Soundex proc sql; select a.name as name1, b.name

Give a talk based on a SAS Global Forum/SUGI paper!

(Okay, Okay… let me ‘fess up - I can’t take credit for this idea…)

What do I talk about?

Page 6: Presenting at the SAS SUCCESS User Group · •e.g. John and Jane in the sashelp class dataset sound phonically similar according to Soundex proc sql; select a.name as name1, b.name

Process

• Pick a SAS Global Forum or SUGI paper

• In 5-20 min do one or more of the following:

– Highlight and summarize key points

– Demonstrate code

– Discuss how you used the paper in your work

– Implications in your field

– Expand on the paper

Presenting at eSUG J. Prins

Page 7: Presenting at the SAS SUCCESS User Group · •e.g. John and Jane in the sashelp class dataset sound phonically similar according to Soundex proc sql; select a.name as name1, b.name

My Favourite Talk from SAS Global Forum 2013

Paper 257-2013: Top 10 Most Powerful Functions for PROC SQL

Page 8: Presenting at the SAS SUCCESS User Group · •e.g. John and Jane in the sashelp class dataset sound phonically similar according to Soundex proc sql; select a.name as name1, b.name

What’s SQL?

• SQL = Structured Query Language

– Used in all relational DBMS

• PROC SQL

– Increases flexibility in handling data, multiple-table joining

Page 9: Presenting at the SAS SUCCESS User Group · •e.g. John and Jane in the sashelp class dataset sound phonically similar according to Soundex proc sql; select a.name as name1, b.name

Profiling the 3 functions that I found most useful …

(1) MONOTONIC

(2) SPEDIS & SOUNDEX

(3) MAX

Page 10: Presenting at the SAS SUCCESS User Group · •e.g. John and Jane in the sashelp class dataset sound phonically similar according to Soundex proc sql; select a.name as name1, b.name

MONOTONIC function

• e.g. Choose SSNs from the 501th line to the 888th line:

proc sql; select * from ssn_data where monotonic() between 501 and 800 ;quit;

Page 11: Presenting at the SAS SUCCESS User Group · •e.g. John and Jane in the sashelp class dataset sound phonically similar according to Soundex proc sql; select a.name as name1, b.name

Fuzzy matching using SPEDIS

• Asymmetric spelling distance between two words (here singlet detection)

• Simulated dataset of social security nos.

proc sql; select a.ssn1 as x, monotonic(a.ssn1) as x_obs, b.ssn1 as y, monotonic(b.ssn1) as y_obs from ssn_data as a, ssn_data as b where (x gt y) and (spedis(put( x, z11.), put( y, z11.)) le 25) ;quit;

Yefim Gershteyn.'Use of SPEDIS Function in Finding Specific Values'. SAS Users Group International 25. http://www2.sas.com/proceedings/sugi25/25/cc/25p086.pdf

Page 12: Presenting at the SAS SUCCESS User Group · •e.g. John and Jane in the sashelp class dataset sound phonically similar according to Soundex proc sql; select a.name as name1, b.name

Fuzzy Matching using SPEDIS

• Output:

Page 13: Presenting at the SAS SUCCESS User Group · •e.g. John and Jane in the sashelp class dataset sound phonically similar according to Soundex proc sql; select a.name as name1, b.name

SOUNDEX: phonic similarity

• e.g. John and Jane in the sashelp class dataset sound phonically similar according to Soundex

proc sql; select a.name as name1, b.name as name2 from sashelp.class as a, sashelp.class as b where soundex(name1) = soundex(name2) and (name1 gt name2) ;quit;

Page 14: Presenting at the SAS SUCCESS User Group · •e.g. John and Jane in the sashelp class dataset sound phonically similar according to Soundex proc sql; select a.name as name1, b.name

MAX Function

•Question: Is each treatment is effective for patients? •MAX function returns maximum value

•Coding simpler than using a RETAIN statement

and temporary variables at DATA Step

Page 15: Presenting at the SAS SUCCESS User Group · •e.g. John and Jane in the sashelp class dataset sound phonically similar according to Soundex proc sql; select a.name as name1, b.name

MAX function

• Output:

proc sql; select id, max(treat1) as effect1 'Effect after Treatment 1', max(treat2) as effect2 'Effect after Treatment 2', max(treat3) as effect3 'Effect after Treatment 3' from hospital_data group by id ;quit;

Page 16: Presenting at the SAS SUCCESS User Group · •e.g. John and Jane in the sashelp class dataset sound phonically similar according to Soundex proc sql; select a.name as name1, b.name

How can I use this paper?

• MONOTONIC: Sub-setting dataset by row numbers after sorting

• SPEDIS: Finding all records describing same events when values affected by typos. Useful before merging datasets by identifier.

• MAX: Identifying lowest cost for most effective treatment