The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Data structure for a discrete-time event history analysis Jane E. Miller, PhD.

Slides:



Advertisements
Similar presentations
MICS 3 DATA ANALYSIS AND REPORT WRITING. Purpose Provide an overview of the MICS3 process in analyzing data Provide an overview of the preparation of.
Advertisements

Multilevel Event History Analysis of the Formation and Outcomes of Cohabiting and Marital Partnerships Fiona Steele Centre for Multilevel Modelling University.
What is Event History Analysis?
Multilevel Event History Modelling of Birth Intervals
SC968: Panel Data Methods for Sociologists
What is Event History Analysis?
SC968: Panel Data Methods for Sociologists
Intermediate methods in observational epidemiology 2008 Instructor: Moyses Szklo Measures of Disease Frequency.
Child and Family Outcomes Chapter 12: Child Outcomes Summary Form Exit Information.
Discrete-time Event History Analysis Fiona Steele Centre for Multilevel Modelling Institute of Education.
Child and Family Outcomes Chapter 6: Child Outcomes Summary Form Entry Information.
Manish Chaudhary MPH (BPKISH)
Uses of Population Censuses and Household Sample Surveys for Vital Statistics in South Africa United Nations Expert Group Meeting on International Standards.
Linking lives through time Marital Status, Health and Mortality: The Role of Living Arrangement Paul Boyle, Peteke Feijten and Gillian Raab.
Basic Descriptive Statistics Healey, Chapter 2
TEMPLATE DESIGN © What about (Having) the Children? Rosalind B. King, National Institute of Child and Health Development.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Organizing data in tables and charts: Different criteria for different tasks Jane.
Logarithmic specifications Jane E. Miller, PhD The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Paper versus speech versus poster: Different formats for communicating research.
U. S. Bureau of Labor Statistics Marriage and Cohabitation Data in the National Longitudinal Surveys Alison Aughinbaugh NLS Summer Workshop 2007.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Creating effective tables and charts Jane E. Miller, PhD.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Calculating interaction patterns from logit coefficients: Interaction between two.
Comparing overall goodness of fit across models
Introduction to fertility In Demography, the word ‘fertility’ refers to the number live births women have It is a major component of population change.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Calculating the shape of a polynomial from regression coefficients Jane E. Miller,
Sep 2005:LDA - ONS1 Event history data structures and data management Paul Lambert Stirling University Prepared for “Longitudinal Data Analysis for Social.
PADM 582 Quantitative and Qualitative Research Methods Basic Concepts of Statistics Soomi Lee, Ph.D.
Copyright 2010, The World Bank Group. All Rights Reserved. Data Processing and Tabulation, Part I.
The Chicago Guide to Writing about Numbers, 2 nd edition. Summarizing a pattern involving many numbers: Generalization, example, exception (“GEE”) Jane.
Design and Analysis of Clinical Study 11. Analysis of Cohort Study Dr. Tuan V. Nguyen Garvan Institute of Medical Research Sydney, Australia.
Tobacco Control Research Conference July 2014 Determinants of smoking initiation in South Africa Determinants of smoking initiation in South Africa.
The Chicago Guide to Writing about Numbers, 2nd Edition. Explaining an exhibit live: The “Vanna White technique” for describing tables, charts or other.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Preparing speaker’s notes and practicing your talk Jane E. Miller, PhD.
Writing about ratios Jane E. Miller, PhD The Chicago Guide to Writing about Numbers, 2nd Edition.
The Chicago Guide to Writing about Numbers, 2 nd edition. Basics of writing about numbers: Reporting one number Jane E. Miller, PhD.
Life expectancy of patients treated with ART in the UK: UK CHIC Study Margaret May University of Bristol, Department of Social Medicine, Bristol.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Writing prose to present results of interactions Jane E. Miller, PhD.
The Chicago Guide to Writing about Numbers, 2 nd edition. Preparing speaker’s notes and practicing your talk Jane E. Miller, PhD.
Planning how to create the variables you need from the variables you have Jane E. Miller, PhD The Chicago Guide to Writing about Numbers, 2 nd edition.
Measuring the Occurrence of Disease 1 Sue Lindsay, Ph.D., MSW, MPH Division of Epidemiology and Biostatistics Institute for Public Health San Diego State.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Criteria for choosing a reference category Jane E. Miller, PhD.
Guide on Gender Analysis of Census Data Ralph Hakkert Population and Development Branch Technical Division, UNFPA.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Defining the Goldilocks problem Jane E. Miller, PhD.
The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Conducting post-hoc tests of compound coefficients using simple slopes for a categorical.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Interpreting multivariate OLS and logit coefficients Jane E. Miller, PhD.
Standardized coefficients Jane E. Miller, PhD The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Choosing tools to present numbers: Tables, charts, and prose Jane E. Miller, PhD.
The Chicago Guide to Writing about Numbers, 2 nd edition. Choosing a comparison group Jane E. Miller, PhD.
University of Warwick, Department of Sociology, 2012/13 SO 201: SSAASS (Surveys and Statistics) (Richard Lampard) Survival Analysis/Event History Analysis:
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Resolving the Goldilocks problem: Variables and measurement Jane E. Miller, PhD.
Social-economic Differentials of the Dying Risk of the oldest- old Chinese Liu, Guiping Max-Planck-Institute for Demographic Research.
Introduction to testing statistical significance of interactions Jane E. Miller, PhD The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition.
Testing statistical significance of differences between coefficients Jane E. Miller, PhD The Chicago Guide to Writing about Multivariate Analysis, 2nd.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns between two categorical independent.
The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Conducting post-hoc tests of compound coefficients using simple slopes for a categorical.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Visualizing shapes of interaction patterns with continuous independent variables.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Creating charts to present interactions Jane E. Miller, PhD.
Approaches to testing statistical significance of interactions Jane E. Miller, PhD The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition.
National Center for Health Statistics DCC CENTERS FOR DISEASE CONTROL AND PREVENTION Measuring Injury Using the National Health Interview Survey Margaret.
Household Structure and Household Structure and Childhood Mortality in Ghana Childhood Mortality in Ghana Winfred Avogo Victor Agadjanian Department of.
Registration The Registration system is a fully integrated solution for today's registration requirements in any country. Covering ID, Passports, Visa’s,
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Resolving the Goldilocks problem: Model specification Jane E. Miller, PhD.
The Chicago Guide to Writing about Multivariate Analysis, 2 nd edition. Calculating interaction effects from OLS coefficients: Interaction between 1 categorical.
Overview of categorical by categorical interactions: Part I: Concepts, definitions, and shapes Interactions in regression models occur when the association.
Liu, Guiping Max-Planck-Institute for Demographic Research
Creating variables and specifying models to test for interactions between two categorical independent variables This lecture is the third in the series.
Introduction to interactions in regression models: Concepts and equations Jane E. Miller, PhD Interactions in regression models occur when the association.
Project title Name Date.
Presentation transcript:

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Data structure for a discrete-time event history analysis Jane E. Miller, PhD

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Overview Structure of most survey data: One record per respondent Discrete-time event history analysis requires separate records for each person-time unit at risk of the event Review: How to create one record per spell How to create one record per person-time unit – Components of the dependent variable – Fixed characteristics – Time varying characteristics The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition.

Event history analysis: discrete time data Data preparation for an event history Survey data often contains one record per respondent Continuous-time event history data contain one record per spell Discrete-time event history analysis requires one record per person-time unit within each spell – E.g., one record for each person-month at risk of divorce, within each spell at risk of divorce

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Source data from survey: 1 record per respondent ID Date of birth Date of 1st marriage Date of 1st divorce Date of 2nd marriage Date of 2nd divorce Date of death Date 1st observed Date last observedGender Date of 1st child's birth Date of 2nd child's birth 12/1/ /15/8510/1/10F.. 27/15/696/22/ /21/8511/5/10M.. 33/1/658/1/901/1/9710/1/04..10/8/855/1/05M12/5/95. 43/1/426/1/ /1/0212/2/8510/2/02F9/21/645/11/67

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Example timelines for study of divorce End of observation period L M = Married D = Divorced L = Lost to follow-up O = Censored by end of study. X = Died D M M M O X M Case 1: Never married -> no spells Case 2: Married once, censored by end of survey Case 3: Married twice, lost to follow-up before end of survey Case 4: Married once, died before end of survey Not married -> not at risk of divorce -> not part of a spell

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Continuous-time event history data One record for each period at risk (spell) – Duration of overall spell – Event indicator at end of spell ID Spell # (marriage #) Date spell started Duration of spell (mos.) Status at end of spell Divorce event indicator Age first observed (yrs) Age at start of spell (yrs) Age last observed (yrs)Gender # kids at start of spell 216/22/ male0 318/1/ male0 3210/1/ male1 416/1/ female0

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Event history timeline: Discrete time specification Case 2, Continuous time version: One four-month spell Married 6/22/2010Last surveyed 11/5/ st person-month Four person-month units Case 2, Discrete-time version: Each person-month unit becomes one record -> unit of analysis. All records for each spell include respondent ID and other characteristics. Married O 2 nd person-month OO 3 rd person-month OO 4 th person-month O End of survey O = Censored

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data One record per person-month ID Spell # (marriage #) Record # w/in spell … … 327 One record per spell ID Spell # (marriage #) Duration of spell (mos.) Status at end of spell Divorce indicator Discrete-time data set: ID codes on person-time records Each person-month record carries the respondent ID Each record within a given spell also includes the spell # for that respondent

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Record number within spell Each month in a spell will generate one person-month record, e.g., – respondent #2 is observed for 4 months -> 4 person-month records – respondent #3 contributes a total of 84 records 77 in his first spell 7 in his second spell One record per person-month ID Spell # (marriage #) Record # w/in spell … … 327 One record per spell ID Spell # (marriage #) Duration of spell (mos.) Status at end of spell Divorce indicator

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Month counter within spell One record per person-month ID Spell # (marriage #) Record # w/in spell month # within spell …… …… 3276 One record per spell ID Spell # (marriage #) Duration of spell (mos.) Status at end of spell Divorce indicator The “month # within spell” counter indicates the start time of the person-month at risk for that record. E.g., the first record for a given spell starts at baseline (time point 0).

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Duration measure for each record within spell The duration measure will = 1 time units for all person-time records within a given spell EXCEPT = 0.5 for the last month in a spell One record per person-month ID Spell # (marriage #) Record # w/in spell month # within spell Person- months w/in record …… …… One record per spell ID Spell # (marriage #) Duration of spell (mos.) Status at end of spell Divorce indicator

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Status indicator for each record within spell The indicator for status at end of record will = 0 for all person-time records within a given spell EXCEPT the last one because by definition they end in censoring (the spell is not yet complete) One record per person-month ID Spell # (marriage #) Record # w/in spell month # within spell Person- months w/in record Status at end of record …… …… One record per spell ID Spell # (marriage #) Duration of spell (mos.) Status at end of spell Divorce indicator

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Status indicator for last record within spell The indicator for status at end of record for the last person- time record within each spell will take on the value of the status indicator for the overall spell One record per person-month ID Spell # (marriage #) Record # w/in spell month # within spell Person- months w/in record Status at end of record …… …… One record per spell ID Spell # (marriage #) Duration of spell (mos.) Status at end of spell Divorce indicator

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Event indicator for each record within spell One record per person-month ID Spell # (marriage #) Record # w/in spell month # within spell Divorce indicator for record …… …… One record per spell ID Spell # (marriage #) Duration of spell (mos.) Status at end of spell Divorce indicator

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Fixed covariates for each person-time record ID Spell # (marriage #) Record # w/in spell month # within spell Divorce indicator for record Age at start of spell (yrs)Gender # children at start of spell male male male male male male male0 31……025male male male male1 32……039male male1 Age, number of children at start of spell, and gender do not change during the course of a spell, so they have the same value for each person-time record within a given spell

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Example timelines for number of children as time-varying covariate in study of divorce L M = Married D = Divorced C = Child born L = Lost to follow-up O = Censored by end of study. X = Died D M M X M Case 3: Case 4: C CC No kids One kid Two kids One kid ID Date of birth Date 1st observed Date of 1st marriage Date of 1st child's birth Date of 2nd child's birth Date of 1st divorce Date of 2nd marriage Date of 2nd divorce Date of death Date last observed 33/1/6510/8/858/1/9012/5/95.1/1/9710/1/04..5/1/05 43/1/4212/2/856/1/639/21/645/11/ /1/0210/2/02 Columns reordered into chronological order

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Discrete time with time-varying covariates Case 3 has his first child 64 months into his first marriage, and no additional children while observed. # kids at start of record is  0 for his first 63 records of spell 1  1 for records 64 through 77 of spell 1  1 for all records in spell 2 IDSpell # month # w/in spell Divorce indicator for record # kids at start of spell # kids at start of record … …

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Discrete time with time-varying covariates Case 4 has her first child 15 months into her marriage, a second child in month 47 after marriage. For her the # kids at start of record is  0 for her first 15 records  1 for records 15 through 46  2 for records 47 or higher, all in spell 1 IDSpell # month # w/in spell Divorce indicator for record # kids at start of spell # kids at start of record … … …

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Presenting information on event history construction: Background work Most of the gory details of creating an event history are part of behind-the-scenes work – Important to do consistency checks to make sure event histories were created correctly given Original data source of information for timeline construction Type of event under study Fixed covariates Time-varying covariates – E.g., correct Number of spells per respondent Number of person-time records for each spell Duration and event indicators for each person-time record Values of fixed- and time-varying covariates for each person-time record

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Presenting information on event history construction In the data and methods section, describe: – Original data source of information for timeline construction Dates, status, duration of events – Type of event under study – Unit of person-time (e.g., person-years, person-months) – What constitutes censoring – Fixed covariates – Time-varying covariates Source(s) of information for determining timing of changes in those variables See checklist in chapter 17 of Writing about Multivariate Analysis, 2nd Edition for more detail on what to report

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Summary A discrete-time event history analysis requires a separate record for each person-time unit at risk of the event For each respondent, create correct number of spells For each spell, calculate – Correct number of person-time units – Components of the dependent variable Duration measure Event indicator – Fixed characteristics – Time-varying characteristics In data and methods section, describe data sources and variables for the event history The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition.

Event history analysis: discrete time data Suggested resources Allison, P. D Survival Analysis Using the SAS System: A Practical Guide, 2nd Edition. Cary, NC: SAS Institute. Miller, J. E The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. University of Chicago Press, chapter 17. The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition.

Event history analysis: discrete time data Suggested online resources Podcast on data structure for a continuous- time event history analysis

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Suggested exercises Study guide to The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. – Question #3a in the problem set for chapter 17 – Suggested course extensions for chapter 17 “Reviewing” exercises #2a through 2h “Applying statistics and writing” exercises #1 and 2a

The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition. Event history analysis: discrete time data Contact information Jane E. Miller, PhD Online materials available at The Chicago Guide to Writing about Multivariate Analysis, 2nd Edition.