Epi-on-the-Island Time Series Regression (TSR) 6-10 July 2015 Wed 1: DLNMs Ben Armstrong London School of Hygiene and Tropical Medicine.

Slides:



Advertisements
Similar presentations
Topic 12: Multiple Linear Regression
Advertisements

Lecture 10 F-tests in MLR (continued) Coefficients of Determination BMTRY 701 Biostatistical Methods II.
© Department of Statistics 2012 STATS 330 Lecture 32: Slide 1 Stats 330: Lecture 32.
Copyright © 2006 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 ~ Curve Fitting ~ Least Squares Regression Chapter.
Learning Objectives Copyright © 2004 John Wiley & Sons, Inc. Bivariate Correlation and Regression CHAPTER Thirteen.
Ch11 Curve Fitting Dr. Deshi Ye
Selected from presentations by Jim Ramsay, McGill University, Hongliang Fei, and Brian Quanz Basis Basics.
Basis Expansion and Regularization Presenter: Hongliang Fei Brian Quanz Brian Quanz Date: July 03, 2008.
1 Chapter 4 Interpolation and Approximation Lagrange Interpolation The basic interpolation problem can be posed in one of two ways: The basic interpolation.
1 Curve-Fitting Spline Interpolation. 2 Curve Fitting Regression Linear Regression Polynomial Regression Multiple Linear Regression Non-linear Regression.
CITS2401 Computer Analysis & Visualisation
Some Terms Y =  o +  1 X Regression of Y on X Regress Y on X X called independent variable or predictor variable or covariate or factor Which factors.
REGRESSION Want to predict one variable (say Y) using the other variable (say X) GOAL: Set up an equation connecting X and Y. Linear regression linear.
1cs426-winter-2008 Notes  Ian Mitchell is running a MATLAB tutorial, Tuesday January 15, 5pm-7pm, DMP 110 We won’t be directly using MATLAB in this course,
Statistics: Data Analysis and Presentation Fr Clinic II.
Modeling of curves Needs a ways of representing curves: Reproducible - the representation should give the same curve every time; Computationally Quick;
Introduction the General Linear Model (GLM) l what “model,” “linear” & “general” mean l bivariate, univariate & multivariate GLModels l kinds of variables.
Examining Relationship of Variables  Response (dependent) variable - measures the outcome of a study.  Explanatory (Independent) variable - explains.
Regression II. OK Non-normal OK Non-normal OK Non-linear.
Regression in EXCEL r2 SSE b0 b1 SST.
Polynomials and Polynomial Functions Section 5.3.
Diane Stockton Trend analysis. Introduction Why do we want to look at trends over time? –To see how things have changed What is the information used for?
Are the Mortality Effects of PM 10 the Result of Inadequate Modeling of Temperature and Seasonality? Leah Welty EBEG February 2, 2004 Joint work with Scott.
CMPS1371 Introduction to Computing for Engineers NUMERICAL METHODS.
HSRP 734: Advanced Statistical Methods July 10, 2008.
Oceanography 569 Oceanographic Data Analysis Laboratory Kathie Kelly Applied Physics Laboratory 515 Ben Hall IR Bldg class web site: faculty.washington.edu/kellyapl/classes/ocean569_.
Biostatistics Unit 9 – Regression and Correlation.
3/2003 Rev 1 I – slide 1 of 33 Session I Part I Review of Fundamentals Module 2Basic Physics and Mathematics Used in Radiation Protection.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1 Part 4 Curve Fitting.
(Spline, Bezier, B-Spline)
1 G Lect 6M Comparing two coefficients within a regression equation Analysis of sets of variables: partitioning the sums of squares Polynomial curve.
So far... We have been estimating differences caused by application of various treatments, and determining the probability that an observed difference.
01/20151 EPI 5344: Survival Analysis in Epidemiology Interpretation of Models March 17, 2015 Dr. N. Birkett, School of Epidemiology, Public Health & Preventive.
Splines Vida Movahedi January 2007.
M25- Growth & Transformations 1  Department of ISM, University of Alabama, Lesson Objectives: Recognize exponential growth or decay. Use log(Y.
Multiple Regression Petter Mostad Review: Simple linear regression We define a model where are independent (normally distributed) with equal.
Epi-on-the-Island Time Series Regression (TSR) 6-10 July 2015 Tuesday 24: Multiple TSRs: (2-stage and all-in-one) Part 3: - summary Ben Armstrong London.
BIOSYST-MeBioSwww.biw.kuleuven.be The potential of Functional Data Analysis for Chemometrics Dirk De Becker, Wouter Saeys, Bart De Ketelaere and Paul Darius.
© Copyright McGraw-Hill Correlation and Regression CHAPTER 10.
Regression Analysis Part C Confidence Intervals and Hypothesis Testing
Regression Models for Quantitative (Numeric) and Qualitative (Categorical) Predictors KNNL – Chapter 8.
Week 5Slide #1 Adjusted R 2, Residuals, and Review Adjusted R 2 Residual Analysis Stata Regression Output revisited –The Overall Model –Analyzing Residuals.
Chapter Thirteen Copyright © 2006 John Wiley & Sons, Inc. Bivariate Correlation and Regression.
PS 225 Lecture 17 Correlation Line Review. Scatterplot (Scattergram)  X: Independent Variable  Y: Dependent Variable  Plot X,Y Pairs Length (in)Weight.
Scatter Plots, Correlation and Linear Regression.
A Review of Benchmarking Methods G Brown, N Parkin, and N Stuttard, ONS.
YOU NEED TO KNOW WHAT THIS MEANS
CS 376 Introduction to Computer Graphics 04 / 25 / 2007 Instructor: Michael Eckmann.
Correlation They go together like salt and pepper… like oil and vinegar… like bread and butter… etc.
Regression Analysis. 1. To comprehend the nature of correlation analysis. 2. To understand bivariate regression analysis. 3. To become aware of the coefficient.
Data Analysis, Presentation, and Statistics
Basis Expansions and Generalized Additive Models Basis expansion Piecewise polynomials Splines Generalized Additive Model MARS.
LECTURE 17: BEYOND LINEARITY PT. 2 March 30, 2016 SDS 293 Machine Learning.
Lecture 29: Modeling Data. Data Modeling Interpolate between data points, using either linear or cubic spline models Model a set of data points as a polynomial.
Yandell – Econ 216 Chap 15-1 Chapter 15 Multiple Regression Model Building.
Piecewise Polynomials and Splines
ECE3340 Numerical Fitting, Interpolation and Approximation
Curve-Fitting Spline Interpolation
Algebra II Explorations Review ( )
Introduction to the General Linear Model (GLM)
CHAPTER 10 Correlation and Regression (Objectives)
Statistical Methods For Engineers
Linear regression Fitting a straight line to observations.
Basis Expansions and Generalized Additive Models (1)
SKTN 2393 Numerical Methods for Nuclear Engineers
5.2B Graphing Polynomial Functions
Curve Fitting Filling in the gaps.
Autoregressive and Growth Curve Models
Chapter 3 Supply network design.
Review of Chapter 3 Examining Relationships
Presentation transcript:

Epi-on-the-Island Time Series Regression (TSR) 6-10 July 2015 Wed 1: DLNMs Ben Armstrong London School of Hygiene and Tropical Medicine

The trailer DLNMs ~200 papers At least one in vet epi: Morignat 2015 Env Res Easy R package!

The algebra terminology:- Recall general model form [In this example, temperature is the variable of interest.]

Distributed lag non-linear models (DLNMs) The shape story (Nonlinear Ms, eg splines) The lag story (DLMs) The lag-shape story (DLNMs)

The shape story: non-linear options: Cold effect Heat effect Thresholds

Other non-linear options

Net RR increment (%) over 28 days per degree above 20 (95% CI): 5.0(3.7,6.3) 4.9(3.6,6.2) 4.9(3.7,6.2) Recall: distributed lag models (DLM) The lag story :

The lag-shape story

The lag-shape problem: Seek combined virtues of: (a)Smooth temp-mort curves (b)Smooth effects of lag. Solution: assume DLMs for each coefficient of a basis variable ….

e.g.: RR by temperature (NCS) and lag(NCS)

Heat effects: Different slope for each lag DLNM: simple(r) case Use a linear threshold model Fit a distributed lag model (DLM) to the heat slope

Simple(r) to general DLNM: Shape flexibility + Lag flexibility = Total flexibilty Armstrong 2006 Basis variables

Extend this to any set of basis variables (eg splines) Armstrong 2006 Gasparrini 2010

DLNM R code example ( London data ) # MAKE DLNM BASIS VARIABLE basis.temp <- crossbasis(data$max_temp, argvar=list(fun="ns",df=3), 3 df spline as before arglag=list(fun=“ns”,knots=c(1,3,7)), constrained lag: 3 knots lag=20) max lag 20 (3-weeks) # FIT MODEL mdlnm2 <- glm(deaths~colag1+spl+basis.temp,… ) # GET PREDICTED RRS FOR A RANGE OF TEMPERATURES pred.temp <- crosspred(basis.temp, mdlnm2) # PLOT FITTED ASSOCIATION plot(pred.temp)

RR by temperature (NCS) and lag(NCS)

DLNM R code example ( London data ) … # PLOT FITTED ASSOCIATION IN VARIOUS WAYS plot(pred.temp,ptype=“3D”) plot(pred.temp,ptype="overall") plot(pred.temp,ptype="slices", lag=c(0,3,7,15)) plot(pred.temp,ptype="slices", var=c(0,35))

Ways of looking at DLNMs RR by lag for given temperature RR by temperature for given lag

- Adding graph of total (28 day) effect

dlnm shape options for x- variable and lag slopes "ns" and "bs" : natural cubic B-splines or B-splines of various degree. "poly" : polynomials functions. "strata" : indicator variables defining strata. (step function) "thr" : high, low or double linear threshold functions. "integer" : indicator variables for each integer value. "lin" : linear functions.

The y scale and “centering” in dlnms Y scale (usually RRs) is “centered”, eg to take the value RR=1 at some x value You can decide the centering value (“..,cen=25..“) or dlnm will use mean x. This affects CIs but not shape of x-y curves,

Overall association from DLNM: linear-threshold (Morignat 2015)

Two-stage multi-TS DLNMs (eg splines) Stage 1: Estimate DLNM for site “Reduce” to overall cumulative x-y curve Save coefficients of this spline curve and variance matrix Stage 2: Meta-analyse the spline coefficients using multivariate meta- analysis (R mvmeta) Plot or otherwise summarise pooled mean curve and report/explore heterogeneity Explore in practical exercise

Pooled mean overall DLNM curves for temperature vs mortality (Guo 2014)

Summaries of country pooled mean overall DLNM curves (Guo 2014)

Site-specific summaries (Guo 2014)

Another kind of summary (Gasparrini 2015)

DLNMs Summary 1.Fits TSR associations allowing flexible lag structures and/or x-y shapes 2.Extension of distributed lag model (DLM) 3.Smooth well-documented R package dlnm, including plotting options 4.Can be meta-analysed using mvmeta 5.Extends to designs beyond TSR (eg cohorts)