A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics !...

18
1 PhUSE 2012 A Simple Interface for Metadata Magnus Mengelbier Director

Transcript of A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics !...

Page 1: A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics ! Introduction ! Metadata ! Data Sets and Tables ! Interfaces ! Summary . PhUSE 2012

1 PhUSE 2012

A Simple Interface for Metadata

Magnus Mengelbier Director

Page 2: A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics ! Introduction ! Metadata ! Data Sets and Tables ! Interfaces ! Summary . PhUSE 2012

2 PhUSE 2012

Topics

§  Introduction §  Metadata §  Data Sets and Tables §  Interfaces §  Summary

Page 3: A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics ! Introduction ! Metadata ! Data Sets and Tables ! Interfaces ! Summary . PhUSE 2012

3 PhUSE 2012

Metadata

§  Everyone uses metadata Ø  Facebook Ø  LinkedIn Ø  Skype Ø  E-mail Ø  Shopping

§  Analysis and statistical programming uses metadata Ø  Protocol Ø  SAP Ø  Data Set

Specifications Ø  Table Shells

Built on metadata

Ø  Microsoft Word Ø  Microsoft Excel Ø  PDF

Page 4: A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics ! Introduction ! Metadata ! Data Sets and Tables ! Interfaces ! Summary . PhUSE 2012

4 PhUSE 2012

Define Metadata

§  Data about data

I am 42 years old.

§  Information about analysis

§  Information about data

Page 5: A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics ! Introduction ! Metadata ! Data Sets and Tables ! Interfaces ! Summary . PhUSE 2012

5 PhUSE 2012

Metadata: Data Sets

§  Name §  Label §  Sort order §  Keys (identifies a single observation) §  Ordered list of variables

§  Name §  Label §  Type §  Length §  Format

§  Code list §  Source §  Derivation rule

PROC CONTENTS

Page 6: A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics ! Introduction ! Metadata ! Data Sets and Tables ! Interfaces ! Summary . PhUSE 2012

6 PhUSE 2012

Metadata: Tables

§  Title(s) §  Population(s) §  Treatment arms §  Summary information §  Footnote(s) §  Source §  Status §  Version(s)

§  Variables §  Time points §  Statistics

Page 7: A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics ! Introduction ! Metadata ! Data Sets and Tables ! Interfaces ! Summary . PhUSE 2012

7 PhUSE 2012

Sources for Building a Table

X:\...\my_program.sas DRAFT mengelbier 15OCT2012 16:42

Source: Listing …

Page 8: A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics ! Introduction ! Metadata ! Data Sets and Tables ! Interfaces ! Summary . PhUSE 2012

8 PhUSE 2012

Building a Table: Summary Section

§  Section Label §  Statistics

Ø  N Ø  Mean (SD) Ø  Median Ø  Min - Max

§  Composite “Statistics” Pattern Ø  Mean (SD) : Mean , Standard Deviation Ø  Min – Max : Minimum , Maximum

§  Source Ø  Data Set Ø  Variable(s)

§  Formats §  Treatment Groups

Page 9: A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics ! Introduction ! Metadata ! Data Sets and Tables ! Interfaces ! Summary . PhUSE 2012

9 PhUSE 2012

Building a Table: Summary Section

§  Section Label §  Category values

Ø  All values Ø  Selected / Excluded Ø  Consolidated

§  Composite “Statistics” Pattern

§  Source Ø  Data Set Ø  Variable(s)

§  Formats §  Treatment Groups

Page 10: A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics ! Introduction ! Metadata ! Data Sets and Tables ! Interfaces ! Summary . PhUSE 2012

10 PhUSE 2012

Readout

§  Data sets and outputs (TLGs) Ø  Consistency within deliverables Ø  No consistency across deliverables

§  Interface features Ø  “Flexible” environment Ø  Informal conventions Ø  Manual administration Ø  Difference between editing and programming

Page 11: A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics ! Introduction ! Metadata ! Data Sets and Tables ! Interfaces ! Summary . PhUSE 2012

11 PhUSE 2012

Metadata: A Simple Interface

Page 12: A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics ! Introduction ! Metadata ! Data Sets and Tables ! Interfaces ! Summary . PhUSE 2012

12 PhUSE 2012

Define a Data Set

§  Name §  Label §  Sort order §  Keys §  Ordered list of variables

Page 13: A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics ! Introduction ! Metadata ! Data Sets and Tables ! Interfaces ! Summary . PhUSE 2012

13 PhUSE 2012

Drawing a Table

§  Title(s) §  Population(s) §  Treatment arms §  Summary information §  Footnote(s) §  Source §  Status §  Version(s)

Page 14: A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics ! Introduction ! Metadata ! Data Sets and Tables ! Interfaces ! Summary . PhUSE 2012

14 PhUSE 2012

Programming with Metadata

%rules_make_dataset( meta = dm, output = sdtms.dm ); %rules_make_dataset( meta = addm, output = adams.addm );

filename tables ″my tables folder″; %rules_make_table( meta = t_dm, output = tables );

%rules_metadata( meta = dm, output = work.meta_dm ); %rules_metadata( meta = t_dm, output = work.meta_t_dm );

Page 15: A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics ! Introduction ! Metadata ! Data Sets and Tables ! Interfaces ! Summary . PhUSE 2012

15 PhUSE 2012

Automation

filename t_prg ″my programs folder for tables″; %rules_make_programs( type = tables, output = t_prg );

- Greg Fagan

… that proc that creates your m5 deliverables, including the define.xml, intext tables, hyperlinks, all our TLGs – validated - , your SDTMs, ADaMs, etc. It even does a nice QA.

filename a_prg ″my analysis programs folder″; %rules_make_analysis( type = safety, output = a_prg );

Page 16: A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics ! Introduction ! Metadata ! Data Sets and Tables ! Interfaces ! Summary . PhUSE 2012

16 PhUSE 2012

Summary

§  Metadata is complex §  Simple interfaces §  Single “simple” interface does

not exist §  Complexity is internal §  Automation

Analysis

Metadata

analysis.xml

PROC CSR

Page 17: A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics ! Introduction ! Metadata ! Data Sets and Tables ! Interfaces ! Summary . PhUSE 2012

17 PhUSE 2012

Questions & Comments

§  Introduction §  Metadata §  Data Sets and Tables §  Interfaces §  Summary

Magnus Mengelbier Director Limelogic

[email protected]

+46 708 110 876 +44 208 144 5701

Page 18: A Simple Interface for Metadata - Lex Jansen · Magnus Mengelbier Director . PhUSE 2012 2 Topics ! Introduction ! Metadata ! Data Sets and Tables ! Interfaces ! Summary . PhUSE 2012

18 PhUSE 2012

T H E E N D