SlideShare une entreprise Scribd logo
1  sur  30
Télécharger pour lire hors ligne
Analysis of Time-series Data
Case-crossover Study
Jinseob Kim
July 17, 2015
Jinseob Kim Analysis of Time-series Data July 17, 2015 1 / 30
Contents
1 Concepts
Individual data
Design
2 Conditional logistic regression
Review Basic linear regression
Logistic regression
Conditional logistic regression
3 Practice
Issues
In R
Jinseob Kim Analysis of Time-series Data July 17, 2015 2 / 30
Objective
1 Individual risk VS population risk
2 Case-crossover design의 개념
3 주의사항
4 적용: season package in R
Jinseob Kim Analysis of Time-series Data July 17, 2015 3 / 30
Concepts
Contents
1 Concepts
Individual data
Design
2 Conditional logistic regression
Review Basic linear regression
Logistic regression
Conditional logistic regression
3 Practice
Issues
In R
Jinseob Kim Analysis of Time-series Data July 17, 2015 4 / 30
Concepts Individual data
Two approaches to see the relationship between weather
and health outcome
Population based study
Y: # events (daily death counts or # hospital admissions)
X: temperature
Estimates pop’n risk (% change in daily death counts corresponding
to the change in temperature)
Individual based study
Y : 1 if an event occurs, 0 otherwise
X : temperature
Estimates individual risk (% change in individual probability of event
or odds ratio corresponding to the change in temperature)
Jinseob Kim Analysis of Time-series Data July 17, 2015 5 / 30
Concepts Individual data
Data structure change
(Year,week,case)
(2006,1,20) : 1 case
(Year,week,event)
(2006,1,1), (2006,1,1), · · · , (2006,1,1) : 20개 case
(2005,53,0), · · · , (2005,53,0), (2006,2,0), · · · , (2006,2,0) : controls..
Jinseob Kim Analysis of Time-series Data July 17, 2015 6 / 30
Concepts Design
Case + Crossover
Case: 환자만 이용.
Crossover: 환자의 다른 시점이 대조군.
Jinseob Kim Analysis of Time-series Data July 17, 2015 7 / 30
Concepts Design
If average (air pollution) of controls < average (air pollution) of case
days..
We conclude that the event is associated with higher values of air
pollution
Jinseob Kim Analysis of Time-series Data July 17, 2015 8 / 30
Concepts Design
Various control day
Time trend로 인한 bias 보정
Jinseob Kim Analysis of Time-series Data July 17, 2015 9 / 30
Conditional logistic regression
Contents
1 Concepts
Individual data
Design
2 Conditional logistic regression
Review Basic linear regression
Logistic regression
Conditional logistic regression
3 Practice
Issues
In R
Jinseob Kim Analysis of Time-series Data July 17, 2015 10 / 30
Conditional logistic regression Review Basic linear regression
Remind
β estimation in linear regression
1 Ordinary Least Square(OLS): semi-parametric
2 Maximum Likelihood Estimator(MLE): parametric
Jinseob Kim Analysis of Time-series Data July 17, 2015 11 / 30
Conditional logistic regression Review Basic linear regression
Least Square(최소제곱법)
제곱합을 최소로: y 정규성에 대한 가정 필요없다.
Figure: OLS Fitting
Jinseob Kim Analysis of Time-series Data July 17, 2015 12 / 30
Conditional logistic regression Review Basic linear regression
Likelihood??
가능도(likelihood) VS 확률(probability)
Discrete: 가능도 = 확률 - 주사위 던져 1나올 확률은 1
6
Continuous: 가능도 != 확률 - 0∼1 에서 숫자 하나 뽑았을 때 0.7일
확률은 0...
Jinseob Kim Analysis of Time-series Data July 17, 2015 13 / 30
Conditional logistic regression Review Basic linear regression
Maximum likelihood estimator(MLE)
최대가능도추정량: 1, · · · , n이 서로 독립이라하자.
1 각각의 가능도 함수를 구한다.
2 가능도를 전부 곱하면 전체 사건의 가능도 (독립이니까)
3 가능도를 최대로 하는 β를 구한다.
Jinseob Kim Analysis of Time-series Data July 17, 2015 14 / 30
Conditional logistic regression Review Basic linear regression
MLE: 최대가능도추정량
데이터가 일어날 가능성을 최대로: y또는 분포가정필요.
Jinseob Kim Analysis of Time-series Data July 17, 2015 15 / 30
Conditional logistic regression Review Basic linear regression
Logistic function: MLE
Figure: Fitting Logistic Function
Jinseob Kim Analysis of Time-series Data July 17, 2015 16 / 30
Conditional logistic regression Review Basic linear regression
LRT? Ward? score?
Likelihood Ratio Test VS Ward test VS score test
1 통계적 유의성 판단하는 방법들.
2 가능도비교 VS 베타값비교 VS 기울기비교/
Jinseob Kim Analysis of Time-series Data July 17, 2015 17 / 30
Conditional logistic regression Review Basic linear regression
비교
Figure: Comparison
Jinseob Kim Analysis of Time-series Data July 17, 2015 18 / 30
Conditional logistic regression Logistic regression
Model
Log(
pi
1 − pi
) = β0 + β1 · xi1
pi = P(Yi = 1) =
exp(β0 + β1 · xi1)
1 + exp(β0 + β1 · xi1)
P(Yi = 0) =
1
1 + exp(β0 + β1 · xi1)
P(Yi = yi ) = (
exp(β0 + β1 · xi1)
1 + exp(β0 + β1 · xi1)
)yi
(
1
1 + exp(β0 + β1 · xi1)
)1−yi
Jinseob Kim Analysis of Time-series Data July 17, 2015 19 / 30
Conditional logistic regression Logistic regression
Likelihood
Likelihood=
n
i=1
P(Yi = yi ) =
n
i=1
(
exp(β0 + β1 · xi1)
1 + exp(β0 + β1 · xi1)
)yi
(
1
1 + exp(β0 + β1 · xi1)
)1−yi
개인별로 가능도(데이터의 상황이 나올 확률)이 나온다.
그것들을 다 곱하면 Likelihood
이것을 최소로 하는 β를 구하는 것.
Case나 Control이나 따로따로 Likelihood를 구한다.
Jinseob Kim Analysis of Time-series Data July 17, 2015 20 / 30
Conditional logistic regression Conditional logistic regression
Conditional likelihood
Matched case-control set
Case와 그의 control들(1:1 or 1:N)이 한 쌍!!
쌍별로 likelihood가 나온다.
쌍별로 우리의 데이터를 볼 가능성을 계산.
모든 쌍에 대해 다 곱하면 전체 Likelihood
Jinseob Kim Analysis of Time-series Data July 17, 2015 21 / 30
Conditional logistic regression Conditional logistic regression
Definition
ith strata(1 ≤ i ≤ N): 1 case(이름:갑), ni control이라 하자.
Conditional likelihood of ith strata=
Li = P(갑이 case고 나머지가 control|case 1명&control ni 명)
Total likelihood=
N
i=1
Li
Jinseob Kim Analysis of Time-series Data July 17, 2015 22 / 30
Practice
Contents
1 Concepts
Individual data
Design
2 Conditional logistic regression
Review Basic linear regression
Logistic regression
Conditional logistic regression
3 Practice
Issues
In R
Jinseob Kim Analysis of Time-series Data July 17, 2015 23 / 30
Practice Issues
Control 확실하냐?
앞 뒤 7일, 14일 등.. control이 확실??
Exposure → Disease가 짧아야..
Exposure 가 축적되지 않아야..
급성질환, 폭로의 일시적 효과 (ex:폭염과 사망)
Jinseob Kim Analysis of Time-series Data July 17, 2015 24 / 30
Practice In R
season package
> library(season)
> data(CVDdaily) # cardiovascular disease data
> CVDdaily=subset(CVDdaily,date<=as.Date('1987-12-31')) # subset for exampl
> head(CVDdaily)
date cvd dow tmpd o3mean o3tmean Mon Tue Wed Thu Fri Sat
3 1987-01-01 55 Thursday 54.50 -16.0073 -15.89619 0 0 0 1 0 0
5 1987-01-02 73 Friday 58.50 -11.6595 -11.19102 0 0 0 0 1 0
9 1987-01-03 64 Saturday 55.25 -10.3241 -10.51787 0 0 0 0 0 1
12 1987-01-04 57 Sunday 54.75 -18.6471 -18.27014 0 0 0 0 0 0
15 1987-01-05 56 Monday 54.50 -17.5291 -17.13201 1 0 0 0 0 0
18 1987-01-06 65 Tuesday 49.75 -22.7846 -22.74711 0 1 0 0 0 0
month winter spring summer autumn
3 1 1 0 0 0
5 1 1 0 0 0
9 1 1 0 0 0
12 1 1 0 0 0
15 1 1 0 0 0
18 1 1 0 0 0
Jinseob Kim Analysis of Time-series Data July 17, 2015 25 / 30
Practice In R
casecross()
> # Effect of ozone on CVD death
> model1 = casecross(cvd ~ o3mean+tmpd+Mon+Tue+Wed+Thu+Fri+Sat, data=CVDdaily)
> # match on day of the week
> model2 = casecross(cvd ~ o3mean+tmpd,matchdow=TRUE, data=CVDdaily)
> # match on temperature to within a degree
> model3 = casecross(cvd ~ o3mean+Mon+Tue+Wed+Thu+Fri+Sat, data=CVDdaily, matchconf='tmpd', confrange=1)
Jinseob Kim Analysis of Time-series Data July 17, 2015 26 / 30
Practice In R
casecross(formula = cvd ~ o3mean + tmpd + Mon + Tue + Wed + Thu +
Fri + Sat, data = CVDdaily, exclusion = 2, stratalength = 28,
matchdow = FALSE, usefinalwindow = FALSE, matchconf = "",
confrange = 0, stratamonth = FALSE)
Time-stratified case-crossover with a stratum length of 28 days
Total number of cases 17502
Number of case days with available control days 364
Average number of control days per case day 23.2
Parameter Estimates:
coef exp(coef) se(coef) z Pr(>|z|)
o3mean -0.002882613 0.9971215 0.001128975 -2.55330077 0.01067073
tmpd 0.001461400 1.0014625 0.001981047 0.73769030 0.46070267
Mon 0.042733425 1.0436596 0.028942815 1.47647783 0.13981566
Tue 0.057910712 1.0596204 0.028772745 2.01269332 0.04414690
Wed -0.010008025 0.9900419 0.029171937 -0.34307029 0.73154558
Thu -0.016790296 0.9833499 0.029455877 -0.57001513 0.56866744
Fri 0.027247952 1.0276226 0.029173235 0.93400517 0.35030123
Sat 0.001855841 1.0018576 0.028900116 0.06421568 0.94879849
Jinseob Kim Analysis of Time-series Data July 17, 2015 27 / 30
Practice In R
casecross(formula = cvd ~ o3mean + tmpd, data = CVDdaily, matchdow = TRUE,
exclusion = 2, stratalength = 28, usefinalwindow = FALSE,
matchconf = "", confrange = 0, stratamonth = FALSE)
Time-stratified case-crossover with a stratum length of 28 days
Matched on day of the week
Total number of cases 17502
Number of case days with available control days 364
Average number of control days per case day 3
Parameter Estimates:
coef exp(coef) se(coef) z Pr(>|z|)
o3mean -0.0030752572 0.9969295 0.001188540 -2.5874238 0.009669658
tmpd -0.0004095116 0.9995906 0.002131744 -0.1921017 0.847662557
Jinseob Kim Analysis of Time-series Data July 17, 2015 28 / 30
Practice In R
casecross(formula = cvd ~ o3mean + Mon + Tue + Wed + Thu + Fri +
Sat, data = CVDdaily, matchconf = "tmpd", confrange = 1,
exclusion = 2, stratalength = 28, matchdow = FALSE, usefinalwindow = FA
stratamonth = FALSE)
Time-stratified case-crossover with a stratum length of 28 days
Matched on tmpd plus/minus 1
Total number of cases 15180
Number of case days with available control days 318
Average number of control days per case day 4.9
Parameter Estimates:
coef exp(coef) se(coef) z Pr(>|z|)
o3mean -0.003238583 0.9967667 0.00131839 -2.4564691 1.403099e-02
Mon 0.182058170 1.1996840 0.03577818 5.0885255 3.608582e-07
Tue 0.144181049 1.1550932 0.03563272 4.0463108 5.203115e-05
Wed 0.099443480 1.1045560 0.03554924 2.7973451 5.152447e-03
Thu 0.088518237 1.0925542 0.03459482 2.5587140 1.050601e-02
Fri 0.108107305 1.1141673 0.03437323 3.1451022 1.660288e-03
Sat 0.023660066 1.0239422 0.03525152 0.6711786 5.021068e-01
Jinseob Kim Analysis of Time-series Data July 17, 2015 29 / 30
Practice In R
END
Email : secondmath85@gmail.com
Jinseob Kim Analysis of Time-series Data July 17, 2015 30 / 30

Contenu connexe

Tendances

Epidemiological study designs
Epidemiological study designsEpidemiological study designs
Epidemiological study designsKayode Afolabi
 
An Introduction to Infectious Disease Modeling
An Introduction to Infectious Disease ModelingAn Introduction to Infectious Disease Modeling
An Introduction to Infectious Disease ModelingInsideScientific
 
Ordinal logistic regression
Ordinal logistic regression Ordinal logistic regression
Ordinal logistic regression Dr Athar Khan
 
Density Curves and Normal Distributions
Density Curves and Normal DistributionsDensity Curves and Normal Distributions
Density Curves and Normal Distributionsnszakir
 
Epidemiology and Health Systems
Epidemiology and Health SystemsEpidemiology and Health Systems
Epidemiology and Health SystemsDr. Nirmal Kandel
 
Epidemological studies
Epidemological studies Epidemological studies
Epidemological studies bhuvanesh4668
 
Nested case control study
Nested case control studyNested case control study
Nested case control studyPrayas Gautam
 
Lecture of epidemiology
Lecture of epidemiologyLecture of epidemiology
Lecture of epidemiologyAmany El-seoud
 
ROC CURVE AND ANALYSIS.pptx
ROC CURVE AND ANALYSIS.pptxROC CURVE AND ANALYSIS.pptx
ROC CURVE AND ANALYSIS.pptxagniva pradhan
 
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...The Stockker
 
Applied Epid
Applied EpidApplied Epid
Applied Epidhoneygbee
 
Validity and Reliability
Validity and Reliability Validity and Reliability
Validity and Reliability Tauseef Jawaid
 
Nested case control,
Nested case control,Nested case control,
Nested case control,shefali jain
 
Confounding and interaction seminar
Confounding and interaction seminarConfounding and interaction seminar
Confounding and interaction seminararundhati garud
 

Tendances (20)

Roc curves
Roc curvesRoc curves
Roc curves
 
Estimating risk
Estimating riskEstimating risk
Estimating risk
 
Validity and Screening Test
Validity and Screening TestValidity and Screening Test
Validity and Screening Test
 
Epidemiological study designs
Epidemiological study designsEpidemiological study designs
Epidemiological study designs
 
An Introduction to Infectious Disease Modeling
An Introduction to Infectious Disease ModelingAn Introduction to Infectious Disease Modeling
An Introduction to Infectious Disease Modeling
 
Ordinal logistic regression
Ordinal logistic regression Ordinal logistic regression
Ordinal logistic regression
 
Density Curves and Normal Distributions
Density Curves and Normal DistributionsDensity Curves and Normal Distributions
Density Curves and Normal Distributions
 
Epidemiology Study Design
Epidemiology Study DesignEpidemiology Study Design
Epidemiology Study Design
 
Epidemiology and Health Systems
Epidemiology and Health SystemsEpidemiology and Health Systems
Epidemiology and Health Systems
 
Epidemological studies
Epidemological studies Epidemological studies
Epidemological studies
 
Nested case control study
Nested case control studyNested case control study
Nested case control study
 
Lecture of epidemiology
Lecture of epidemiologyLecture of epidemiology
Lecture of epidemiology
 
ROC CURVE AND ANALYSIS.pptx
ROC CURVE AND ANALYSIS.pptxROC CURVE AND ANALYSIS.pptx
ROC CURVE AND ANALYSIS.pptx
 
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
Research methodology - Estimation Theory & Hypothesis Testing, Techniques of ...
 
Stat 3203 -pps sampling
Stat 3203 -pps samplingStat 3203 -pps sampling
Stat 3203 -pps sampling
 
Applied Epid
Applied EpidApplied Epid
Applied Epid
 
03 incidence preval
03 incidence preval03 incidence preval
03 incidence preval
 
Validity and Reliability
Validity and Reliability Validity and Reliability
Validity and Reliability
 
Nested case control,
Nested case control,Nested case control,
Nested case control,
 
Confounding and interaction seminar
Confounding and interaction seminarConfounding and interaction seminar
Confounding and interaction seminar
 

En vedette

Impact of three decades of energy efficiency interventions in public housing ...
Impact of three decades of energy efficiency interventions in public housing ...Impact of three decades of energy efficiency interventions in public housing ...
Impact of three decades of energy efficiency interventions in public housing ...sophieproject
 
Improving informed consent forms in clinical research studies
Improving informed consent forms in clinical research studiesImproving informed consent forms in clinical research studies
Improving informed consent forms in clinical research studiesTrialJoin
 
Understanding Your Customer dsp_certificate
Understanding Your Customer dsp_certificateUnderstanding Your Customer dsp_certificate
Understanding Your Customer dsp_certificateCarrie E. Williams
 
Study designs in epidemiology
Study designs in epidemiologyStudy designs in epidemiology
Study designs in epidemiologyBhoj Raj Singh
 
Types and Designs of Clinical Studies
Types and Designs of Clinical StudiesTypes and Designs of Clinical Studies
Types and Designs of Clinical StudiesTrialJoin
 
Logistic Regression in Case-Control Study
Logistic Regression in Case-Control StudyLogistic Regression in Case-Control Study
Logistic Regression in Case-Control StudySatish Gupta
 
Study design in research
Study design in  research Study design in  research
Study design in research Kusum Gaur
 
ロジスティック回帰分析の書き方
ロジスティック回帰分析の書き方ロジスティック回帰分析の書き方
ロジスティック回帰分析の書き方Sayuri Shimizu
 

En vedette (8)

Impact of three decades of energy efficiency interventions in public housing ...
Impact of three decades of energy efficiency interventions in public housing ...Impact of three decades of energy efficiency interventions in public housing ...
Impact of three decades of energy efficiency interventions in public housing ...
 
Improving informed consent forms in clinical research studies
Improving informed consent forms in clinical research studiesImproving informed consent forms in clinical research studies
Improving informed consent forms in clinical research studies
 
Understanding Your Customer dsp_certificate
Understanding Your Customer dsp_certificateUnderstanding Your Customer dsp_certificate
Understanding Your Customer dsp_certificate
 
Study designs in epidemiology
Study designs in epidemiologyStudy designs in epidemiology
Study designs in epidemiology
 
Types and Designs of Clinical Studies
Types and Designs of Clinical StudiesTypes and Designs of Clinical Studies
Types and Designs of Clinical Studies
 
Logistic Regression in Case-Control Study
Logistic Regression in Case-Control StudyLogistic Regression in Case-Control Study
Logistic Regression in Case-Control Study
 
Study design in research
Study design in  research Study design in  research
Study design in research
 
ロジスティック回帰分析の書き方
ロジスティック回帰分析の書き方ロジスティック回帰分析の書き方
ロジスティック回帰分析の書き方
 

Similaire à Case-crossover study

Generalized Additive Model
Generalized Additive Model Generalized Additive Model
Generalized Additive Model Jinseob Kim
 
BASIC CONCEPT OF PROBABILITY by Elem Stppt
BASIC CONCEPT OF PROBABILITY by Elem StpptBASIC CONCEPT OF PROBABILITY by Elem Stppt
BASIC CONCEPT OF PROBABILITY by Elem StpptJAMESFRANCISGOSE
 
Logistic regression vs. logistic classifier. History of the confusion and the...
Logistic regression vs. logistic classifier. History of the confusion and the...Logistic regression vs. logistic classifier. History of the confusion and the...
Logistic regression vs. logistic classifier. History of the confusion and the...Adrian Olszewski
 
Ppt unit-05-mbf103
Ppt unit-05-mbf103Ppt unit-05-mbf103
Ppt unit-05-mbf103Vibha Nayak
 
Time and size covariate generalization of growth curves and their extension t...
Time and size covariate generalization of growth curves and their extension t...Time and size covariate generalization of growth curves and their extension t...
Time and size covariate generalization of growth curves and their extension t...bimchk
 
Auto Correlation Presentation
Auto Correlation PresentationAuto Correlation Presentation
Auto Correlation PresentationIrfan Hussain
 
Seminar on Robust Regression Methods
Seminar on Robust Regression MethodsSeminar on Robust Regression Methods
Seminar on Robust Regression MethodsSumon Sdb
 
Biostat_Chapter6_Part3.pdf Bio Statistics
Biostat_Chapter6_Part3.pdf Bio StatisticsBiostat_Chapter6_Part3.pdf Bio Statistics
Biostat_Chapter6_Part3.pdf Bio StatisticsArwaAbdelHamid1
 
Class 36 advanced control strategies – dead time compensator, selective con...
Class 36   advanced control strategies – dead time compensator, selective con...Class 36   advanced control strategies – dead time compensator, selective con...
Class 36 advanced control strategies – dead time compensator, selective con...Manipal Institute of Technology
 
Applications on Markov Chain
Applications on Markov ChainApplications on Markov Chain
Applications on Markov Chainijtsrd
 
Survival Analysis Lecture.ppt
Survival Analysis Lecture.pptSurvival Analysis Lecture.ppt
Survival Analysis Lecture.ppthabtamu biazin
 
Big Data Analytics for Healthcare
Big Data Analytics for HealthcareBig Data Analytics for Healthcare
Big Data Analytics for HealthcareChandan Reddy
 

Similaire à Case-crossover study (20)

Generalized Additive Model
Generalized Additive Model Generalized Additive Model
Generalized Additive Model
 
430 PROJJ
430 PROJJ430 PROJJ
430 PROJJ
 
BASIC CONCEPT OF PROBABILITY by Elem Stppt
BASIC CONCEPT OF PROBABILITY by Elem StpptBASIC CONCEPT OF PROBABILITY by Elem Stppt
BASIC CONCEPT OF PROBABILITY by Elem Stppt
 
TestSurvRec manual
TestSurvRec manualTestSurvRec manual
TestSurvRec manual
 
50120130405032
5012013040503250120130405032
50120130405032
 
report
reportreport
report
 
Logistic regression vs. logistic classifier. History of the confusion and the...
Logistic regression vs. logistic classifier. History of the confusion and the...Logistic regression vs. logistic classifier. History of the confusion and the...
Logistic regression vs. logistic classifier. History of the confusion and the...
 
CLIM Fall 2017 Course: Statistics for Climate Research, Statistics of Climate...
CLIM Fall 2017 Course: Statistics for Climate Research, Statistics of Climate...CLIM Fall 2017 Course: Statistics for Climate Research, Statistics of Climate...
CLIM Fall 2017 Course: Statistics for Climate Research, Statistics of Climate...
 
GDRR Opening Workshop - Bayesian Inference for Common Cause Failure Rate Base...
GDRR Opening Workshop - Bayesian Inference for Common Cause Failure Rate Base...GDRR Opening Workshop - Bayesian Inference for Common Cause Failure Rate Base...
GDRR Opening Workshop - Bayesian Inference for Common Cause Failure Rate Base...
 
Ppt unit-05-mbf103
Ppt unit-05-mbf103Ppt unit-05-mbf103
Ppt unit-05-mbf103
 
Time and size covariate generalization of growth curves and their extension t...
Time and size covariate generalization of growth curves and their extension t...Time and size covariate generalization of growth curves and their extension t...
Time and size covariate generalization of growth curves and their extension t...
 
Auto Correlation Presentation
Auto Correlation PresentationAuto Correlation Presentation
Auto Correlation Presentation
 
CLIM Fall 2017 Course: Statistics for Climate Research, Climate Informatics -...
CLIM Fall 2017 Course: Statistics for Climate Research, Climate Informatics -...CLIM Fall 2017 Course: Statistics for Climate Research, Climate Informatics -...
CLIM Fall 2017 Course: Statistics for Climate Research, Climate Informatics -...
 
Seminar on Robust Regression Methods
Seminar on Robust Regression MethodsSeminar on Robust Regression Methods
Seminar on Robust Regression Methods
 
Biostat_Chapter6_Part3.pdf Bio Statistics
Biostat_Chapter6_Part3.pdf Bio StatisticsBiostat_Chapter6_Part3.pdf Bio Statistics
Biostat_Chapter6_Part3.pdf Bio Statistics
 
Class 36 advanced control strategies – dead time compensator, selective con...
Class 36   advanced control strategies – dead time compensator, selective con...Class 36   advanced control strategies – dead time compensator, selective con...
Class 36 advanced control strategies – dead time compensator, selective con...
 
Applications on Markov Chain
Applications on Markov ChainApplications on Markov Chain
Applications on Markov Chain
 
Survival Analysis Lecture.ppt
Survival Analysis Lecture.pptSurvival Analysis Lecture.ppt
Survival Analysis Lecture.ppt
 
Ullmayer_Rodriguez_Presentation
Ullmayer_Rodriguez_PresentationUllmayer_Rodriguez_Presentation
Ullmayer_Rodriguez_Presentation
 
Big Data Analytics for Healthcare
Big Data Analytics for HealthcareBig Data Analytics for Healthcare
Big Data Analytics for Healthcare
 

Plus de Jinseob Kim

Unsupervised Deep Learning Applied to Breast Density Segmentation and Mammogr...
Unsupervised Deep Learning Applied to Breast Density Segmentation and Mammogr...Unsupervised Deep Learning Applied to Breast Density Segmentation and Mammogr...
Unsupervised Deep Learning Applied to Breast Density Segmentation and Mammogr...Jinseob Kim
 
Fst, selection index
Fst, selection indexFst, selection index
Fst, selection indexJinseob Kim
 
Why Does Deep and Cheap Learning Work So Well
Why Does Deep and Cheap Learning Work So WellWhy Does Deep and Cheap Learning Work So Well
Why Does Deep and Cheap Learning Work So WellJinseob Kim
 
괴델(Godel)의 불완전성 정리 증명의 이해.
괴델(Godel)의 불완전성 정리 증명의 이해.괴델(Godel)의 불완전성 정리 증명의 이해.
괴델(Godel)의 불완전성 정리 증명의 이해.Jinseob Kim
 
New Epidemiologic Measures in Multilevel Study: Median Risk Ratio, Median Haz...
New Epidemiologic Measures in Multilevel Study: Median Risk Ratio, Median Haz...New Epidemiologic Measures in Multilevel Study: Median Risk Ratio, Median Haz...
New Epidemiologic Measures in Multilevel Study: Median Risk Ratio, Median Haz...Jinseob Kim
 
가설검정의 심리학
가설검정의 심리학 가설검정의 심리학
가설검정의 심리학 Jinseob Kim
 
Win Above Replacement in Sabermetrics
Win Above Replacement in SabermetricsWin Above Replacement in Sabermetrics
Win Above Replacement in SabermetricsJinseob Kim
 
Regression Basic : MLE
Regression  Basic : MLERegression  Basic : MLE
Regression Basic : MLEJinseob Kim
 
iHS calculation in R
iHS calculation in RiHS calculation in R
iHS calculation in RJinseob Kim
 
Selection index population_genetics
Selection index population_geneticsSelection index population_genetics
Selection index population_geneticsJinseob Kim
 
질병부담계산: Dismod mr gbd2010
질병부담계산: Dismod mr gbd2010질병부담계산: Dismod mr gbd2010
질병부담계산: Dismod mr gbd2010Jinseob Kim
 
Deep Learning by JSKIM (Korean)
Deep Learning by JSKIM (Korean)Deep Learning by JSKIM (Korean)
Deep Learning by JSKIM (Korean)Jinseob Kim
 
Machine Learning Introduction
Machine Learning IntroductionMachine Learning Introduction
Machine Learning IntroductionJinseob Kim
 
Deep learning by JSKIM
Deep learning by JSKIMDeep learning by JSKIM
Deep learning by JSKIMJinseob Kim
 
Multilevel study
Multilevel study Multilevel study
Multilevel study Jinseob Kim
 
GEE & GLMM in GWAS
GEE & GLMM in GWASGEE & GLMM in GWAS
GEE & GLMM in GWASJinseob Kim
 

Plus de Jinseob Kim (20)

Unsupervised Deep Learning Applied to Breast Density Segmentation and Mammogr...
Unsupervised Deep Learning Applied to Breast Density Segmentation and Mammogr...Unsupervised Deep Learning Applied to Breast Density Segmentation and Mammogr...
Unsupervised Deep Learning Applied to Breast Density Segmentation and Mammogr...
 
Fst, selection index
Fst, selection indexFst, selection index
Fst, selection index
 
Why Does Deep and Cheap Learning Work So Well
Why Does Deep and Cheap Learning Work So WellWhy Does Deep and Cheap Learning Work So Well
Why Does Deep and Cheap Learning Work So Well
 
괴델(Godel)의 불완전성 정리 증명의 이해.
괴델(Godel)의 불완전성 정리 증명의 이해.괴델(Godel)의 불완전성 정리 증명의 이해.
괴델(Godel)의 불완전성 정리 증명의 이해.
 
New Epidemiologic Measures in Multilevel Study: Median Risk Ratio, Median Haz...
New Epidemiologic Measures in Multilevel Study: Median Risk Ratio, Median Haz...New Epidemiologic Measures in Multilevel Study: Median Risk Ratio, Median Haz...
New Epidemiologic Measures in Multilevel Study: Median Risk Ratio, Median Haz...
 
가설검정의 심리학
가설검정의 심리학 가설검정의 심리학
가설검정의 심리학
 
Win Above Replacement in Sabermetrics
Win Above Replacement in SabermetricsWin Above Replacement in Sabermetrics
Win Above Replacement in Sabermetrics
 
Regression Basic : MLE
Regression  Basic : MLERegression  Basic : MLE
Regression Basic : MLE
 
iHS calculation in R
iHS calculation in RiHS calculation in R
iHS calculation in R
 
Fst in R
Fst in R Fst in R
Fst in R
 
Selection index population_genetics
Selection index population_geneticsSelection index population_genetics
Selection index population_genetics
 
질병부담계산: Dismod mr gbd2010
질병부담계산: Dismod mr gbd2010질병부담계산: Dismod mr gbd2010
질병부담계산: Dismod mr gbd2010
 
DALY & QALY
DALY & QALYDALY & QALY
DALY & QALY
 
Deep Learning by JSKIM (Korean)
Deep Learning by JSKIM (Korean)Deep Learning by JSKIM (Korean)
Deep Learning by JSKIM (Korean)
 
Machine Learning Introduction
Machine Learning IntroductionMachine Learning Introduction
Machine Learning Introduction
 
Tree advanced
Tree advancedTree advanced
Tree advanced
 
Deep learning by JSKIM
Deep learning by JSKIMDeep learning by JSKIM
Deep learning by JSKIM
 
Main result
Main result Main result
Main result
 
Multilevel study
Multilevel study Multilevel study
Multilevel study
 
GEE & GLMM in GWAS
GEE & GLMM in GWASGEE & GLMM in GWAS
GEE & GLMM in GWAS
 

Dernier

Call Girl In Chandigarh 📞9809698092📞 Just📲 Call Inaaya Chandigarh Call Girls ...
Call Girl In Chandigarh 📞9809698092📞 Just📲 Call Inaaya Chandigarh Call Girls ...Call Girl In Chandigarh 📞9809698092📞 Just📲 Call Inaaya Chandigarh Call Girls ...
Call Girl In Chandigarh 📞9809698092📞 Just📲 Call Inaaya Chandigarh Call Girls ...Sheetaleventcompany
 
Call Girls Kathua Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Kathua Just Call 8250077686 Top Class Call Girl Service AvailableCall Girls Kathua Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Kathua Just Call 8250077686 Top Class Call Girl Service AvailableDipal Arora
 
Circulatory Shock, types and stages, compensatory mechanisms
Circulatory Shock, types and stages, compensatory mechanismsCirculatory Shock, types and stages, compensatory mechanisms
Circulatory Shock, types and stages, compensatory mechanismsMedicoseAcademics
 
ANATOMY AND PHYSIOLOGY OF REPRODUCTIVE SYSTEM.pptx
ANATOMY AND PHYSIOLOGY OF REPRODUCTIVE SYSTEM.pptxANATOMY AND PHYSIOLOGY OF REPRODUCTIVE SYSTEM.pptx
ANATOMY AND PHYSIOLOGY OF REPRODUCTIVE SYSTEM.pptxSwetaba Besh
 
Call Girls Mussoorie Just Call 8854095900 Top Class Call Girl Service Available
Call Girls Mussoorie Just Call 8854095900 Top Class Call Girl Service AvailableCall Girls Mussoorie Just Call 8854095900 Top Class Call Girl Service Available
Call Girls Mussoorie Just Call 8854095900 Top Class Call Girl Service AvailableJanvi Singh
 
Difference Between Skeletal Smooth and Cardiac Muscles
Difference Between Skeletal Smooth and Cardiac MusclesDifference Between Skeletal Smooth and Cardiac Muscles
Difference Between Skeletal Smooth and Cardiac MusclesMedicoseAcademics
 
Kolkata Call Girls Service ❤️🍑 9xx000xx09 👄🫦 Independent Escort Service Kolka...
Kolkata Call Girls Service ❤️🍑 9xx000xx09 👄🫦 Independent Escort Service Kolka...Kolkata Call Girls Service ❤️🍑 9xx000xx09 👄🫦 Independent Escort Service Kolka...
Kolkata Call Girls Service ❤️🍑 9xx000xx09 👄🫦 Independent Escort Service Kolka...Sheetaleventcompany
 
❤️Call Girl Service In Chandigarh☎️9814379184☎️ Call Girl in Chandigarh☎️ Cha...
❤️Call Girl Service In Chandigarh☎️9814379184☎️ Call Girl in Chandigarh☎️ Cha...❤️Call Girl Service In Chandigarh☎️9814379184☎️ Call Girl in Chandigarh☎️ Cha...
❤️Call Girl Service In Chandigarh☎️9814379184☎️ Call Girl in Chandigarh☎️ Cha...Sheetaleventcompany
 
Premium Call Girls Nagpur {9xx000xx09} ❤️VVIP POOJA Call Girls in Nagpur Maha...
Premium Call Girls Nagpur {9xx000xx09} ❤️VVIP POOJA Call Girls in Nagpur Maha...Premium Call Girls Nagpur {9xx000xx09} ❤️VVIP POOJA Call Girls in Nagpur Maha...
Premium Call Girls Nagpur {9xx000xx09} ❤️VVIP POOJA Call Girls in Nagpur Maha...Sheetaleventcompany
 
Race Course Road } Book Call Girls in Bangalore | Whatsapp No 6378878445 VIP ...
Race Course Road } Book Call Girls in Bangalore | Whatsapp No 6378878445 VIP ...Race Course Road } Book Call Girls in Bangalore | Whatsapp No 6378878445 VIP ...
Race Course Road } Book Call Girls in Bangalore | Whatsapp No 6378878445 VIP ...dishamehta3332
 
Chennai ❣️ Call Girl 6378878445 Call Girls in Chennai Escort service book now
Chennai ❣️ Call Girl 6378878445 Call Girls in Chennai Escort service book nowChennai ❣️ Call Girl 6378878445 Call Girls in Chennai Escort service book now
Chennai ❣️ Call Girl 6378878445 Call Girls in Chennai Escort service book nowtanudubay92
 
Call Girls in Lucknow Just Call 👉👉 8875999948 Top Class Call Girl Service Ava...
Call Girls in Lucknow Just Call 👉👉 8875999948 Top Class Call Girl Service Ava...Call Girls in Lucknow Just Call 👉👉 8875999948 Top Class Call Girl Service Ava...
Call Girls in Lucknow Just Call 👉👉 8875999948 Top Class Call Girl Service Ava...Janvi Singh
 
👉 Chennai Sexy Aunty’s WhatsApp Number 👉📞 7427069034 👉📞 Just📲 Call Ruhi Colle...
👉 Chennai Sexy Aunty’s WhatsApp Number 👉📞 7427069034 👉📞 Just📲 Call Ruhi Colle...👉 Chennai Sexy Aunty’s WhatsApp Number 👉📞 7427069034 👉📞 Just📲 Call Ruhi Colle...
👉 Chennai Sexy Aunty’s WhatsApp Number 👉📞 7427069034 👉📞 Just📲 Call Ruhi Colle...rajnisinghkjn
 
❤️Chandigarh Escorts Service☎️9814379184☎️ Call Girl service in Chandigarh☎️ ...
❤️Chandigarh Escorts Service☎️9814379184☎️ Call Girl service in Chandigarh☎️ ...❤️Chandigarh Escorts Service☎️9814379184☎️ Call Girl service in Chandigarh☎️ ...
❤️Chandigarh Escorts Service☎️9814379184☎️ Call Girl service in Chandigarh☎️ ...Sheetaleventcompany
 
Call 8250092165 Patna Call Girls ₹4.5k Cash Payment With Room Delivery
Call 8250092165 Patna Call Girls ₹4.5k Cash Payment With Room DeliveryCall 8250092165 Patna Call Girls ₹4.5k Cash Payment With Room Delivery
Call 8250092165 Patna Call Girls ₹4.5k Cash Payment With Room DeliveryJyoti singh
 
Kolkata Call Girls Shobhabazar 💯Call Us 🔝 8005736733 🔝 💃 Top Class Call Gir...
Kolkata Call Girls Shobhabazar  💯Call Us 🔝 8005736733 🔝 💃  Top Class Call Gir...Kolkata Call Girls Shobhabazar  💯Call Us 🔝 8005736733 🔝 💃  Top Class Call Gir...
Kolkata Call Girls Shobhabazar 💯Call Us 🔝 8005736733 🔝 💃 Top Class Call Gir...Namrata Singh
 
Kolkata Call Girls Naktala 💯Call Us 🔝 8005736733 🔝 💃 Top Class Call Girl Se...
Kolkata Call Girls Naktala  💯Call Us 🔝 8005736733 🔝 💃  Top Class Call Girl Se...Kolkata Call Girls Naktala  💯Call Us 🔝 8005736733 🔝 💃  Top Class Call Girl Se...
Kolkata Call Girls Naktala 💯Call Us 🔝 8005736733 🔝 💃 Top Class Call Girl Se...Namrata Singh
 
Gastric Cancer: Сlinical Implementation of Artificial Intelligence, Synergeti...
Gastric Cancer: Сlinical Implementation of Artificial Intelligence, Synergeti...Gastric Cancer: Сlinical Implementation of Artificial Intelligence, Synergeti...
Gastric Cancer: Сlinical Implementation of Artificial Intelligence, Synergeti...Oleg Kshivets
 
Call girls Service Phullen / 9332606886 Genuine Call girls with real Photos a...
Call girls Service Phullen / 9332606886 Genuine Call girls with real Photos a...Call girls Service Phullen / 9332606886 Genuine Call girls with real Photos a...
Call girls Service Phullen / 9332606886 Genuine Call girls with real Photos a...call girls hydrabad
 
Ahmedabad Call Girls Book Now 9630942363 Top Class Ahmedabad Escort Service A...
Ahmedabad Call Girls Book Now 9630942363 Top Class Ahmedabad Escort Service A...Ahmedabad Call Girls Book Now 9630942363 Top Class Ahmedabad Escort Service A...
Ahmedabad Call Girls Book Now 9630942363 Top Class Ahmedabad Escort Service A...GENUINE ESCORT AGENCY
 

Dernier (20)

Call Girl In Chandigarh 📞9809698092📞 Just📲 Call Inaaya Chandigarh Call Girls ...
Call Girl In Chandigarh 📞9809698092📞 Just📲 Call Inaaya Chandigarh Call Girls ...Call Girl In Chandigarh 📞9809698092📞 Just📲 Call Inaaya Chandigarh Call Girls ...
Call Girl In Chandigarh 📞9809698092📞 Just📲 Call Inaaya Chandigarh Call Girls ...
 
Call Girls Kathua Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Kathua Just Call 8250077686 Top Class Call Girl Service AvailableCall Girls Kathua Just Call 8250077686 Top Class Call Girl Service Available
Call Girls Kathua Just Call 8250077686 Top Class Call Girl Service Available
 
Circulatory Shock, types and stages, compensatory mechanisms
Circulatory Shock, types and stages, compensatory mechanismsCirculatory Shock, types and stages, compensatory mechanisms
Circulatory Shock, types and stages, compensatory mechanisms
 
ANATOMY AND PHYSIOLOGY OF REPRODUCTIVE SYSTEM.pptx
ANATOMY AND PHYSIOLOGY OF REPRODUCTIVE SYSTEM.pptxANATOMY AND PHYSIOLOGY OF REPRODUCTIVE SYSTEM.pptx
ANATOMY AND PHYSIOLOGY OF REPRODUCTIVE SYSTEM.pptx
 
Call Girls Mussoorie Just Call 8854095900 Top Class Call Girl Service Available
Call Girls Mussoorie Just Call 8854095900 Top Class Call Girl Service AvailableCall Girls Mussoorie Just Call 8854095900 Top Class Call Girl Service Available
Call Girls Mussoorie Just Call 8854095900 Top Class Call Girl Service Available
 
Difference Between Skeletal Smooth and Cardiac Muscles
Difference Between Skeletal Smooth and Cardiac MusclesDifference Between Skeletal Smooth and Cardiac Muscles
Difference Between Skeletal Smooth and Cardiac Muscles
 
Kolkata Call Girls Service ❤️🍑 9xx000xx09 👄🫦 Independent Escort Service Kolka...
Kolkata Call Girls Service ❤️🍑 9xx000xx09 👄🫦 Independent Escort Service Kolka...Kolkata Call Girls Service ❤️🍑 9xx000xx09 👄🫦 Independent Escort Service Kolka...
Kolkata Call Girls Service ❤️🍑 9xx000xx09 👄🫦 Independent Escort Service Kolka...
 
❤️Call Girl Service In Chandigarh☎️9814379184☎️ Call Girl in Chandigarh☎️ Cha...
❤️Call Girl Service In Chandigarh☎️9814379184☎️ Call Girl in Chandigarh☎️ Cha...❤️Call Girl Service In Chandigarh☎️9814379184☎️ Call Girl in Chandigarh☎️ Cha...
❤️Call Girl Service In Chandigarh☎️9814379184☎️ Call Girl in Chandigarh☎️ Cha...
 
Premium Call Girls Nagpur {9xx000xx09} ❤️VVIP POOJA Call Girls in Nagpur Maha...
Premium Call Girls Nagpur {9xx000xx09} ❤️VVIP POOJA Call Girls in Nagpur Maha...Premium Call Girls Nagpur {9xx000xx09} ❤️VVIP POOJA Call Girls in Nagpur Maha...
Premium Call Girls Nagpur {9xx000xx09} ❤️VVIP POOJA Call Girls in Nagpur Maha...
 
Race Course Road } Book Call Girls in Bangalore | Whatsapp No 6378878445 VIP ...
Race Course Road } Book Call Girls in Bangalore | Whatsapp No 6378878445 VIP ...Race Course Road } Book Call Girls in Bangalore | Whatsapp No 6378878445 VIP ...
Race Course Road } Book Call Girls in Bangalore | Whatsapp No 6378878445 VIP ...
 
Chennai ❣️ Call Girl 6378878445 Call Girls in Chennai Escort service book now
Chennai ❣️ Call Girl 6378878445 Call Girls in Chennai Escort service book nowChennai ❣️ Call Girl 6378878445 Call Girls in Chennai Escort service book now
Chennai ❣️ Call Girl 6378878445 Call Girls in Chennai Escort service book now
 
Call Girls in Lucknow Just Call 👉👉 8875999948 Top Class Call Girl Service Ava...
Call Girls in Lucknow Just Call 👉👉 8875999948 Top Class Call Girl Service Ava...Call Girls in Lucknow Just Call 👉👉 8875999948 Top Class Call Girl Service Ava...
Call Girls in Lucknow Just Call 👉👉 8875999948 Top Class Call Girl Service Ava...
 
👉 Chennai Sexy Aunty’s WhatsApp Number 👉📞 7427069034 👉📞 Just📲 Call Ruhi Colle...
👉 Chennai Sexy Aunty’s WhatsApp Number 👉📞 7427069034 👉📞 Just📲 Call Ruhi Colle...👉 Chennai Sexy Aunty’s WhatsApp Number 👉📞 7427069034 👉📞 Just📲 Call Ruhi Colle...
👉 Chennai Sexy Aunty’s WhatsApp Number 👉📞 7427069034 👉📞 Just📲 Call Ruhi Colle...
 
❤️Chandigarh Escorts Service☎️9814379184☎️ Call Girl service in Chandigarh☎️ ...
❤️Chandigarh Escorts Service☎️9814379184☎️ Call Girl service in Chandigarh☎️ ...❤️Chandigarh Escorts Service☎️9814379184☎️ Call Girl service in Chandigarh☎️ ...
❤️Chandigarh Escorts Service☎️9814379184☎️ Call Girl service in Chandigarh☎️ ...
 
Call 8250092165 Patna Call Girls ₹4.5k Cash Payment With Room Delivery
Call 8250092165 Patna Call Girls ₹4.5k Cash Payment With Room DeliveryCall 8250092165 Patna Call Girls ₹4.5k Cash Payment With Room Delivery
Call 8250092165 Patna Call Girls ₹4.5k Cash Payment With Room Delivery
 
Kolkata Call Girls Shobhabazar 💯Call Us 🔝 8005736733 🔝 💃 Top Class Call Gir...
Kolkata Call Girls Shobhabazar  💯Call Us 🔝 8005736733 🔝 💃  Top Class Call Gir...Kolkata Call Girls Shobhabazar  💯Call Us 🔝 8005736733 🔝 💃  Top Class Call Gir...
Kolkata Call Girls Shobhabazar 💯Call Us 🔝 8005736733 🔝 💃 Top Class Call Gir...
 
Kolkata Call Girls Naktala 💯Call Us 🔝 8005736733 🔝 💃 Top Class Call Girl Se...
Kolkata Call Girls Naktala  💯Call Us 🔝 8005736733 🔝 💃  Top Class Call Girl Se...Kolkata Call Girls Naktala  💯Call Us 🔝 8005736733 🔝 💃  Top Class Call Girl Se...
Kolkata Call Girls Naktala 💯Call Us 🔝 8005736733 🔝 💃 Top Class Call Girl Se...
 
Gastric Cancer: Сlinical Implementation of Artificial Intelligence, Synergeti...
Gastric Cancer: Сlinical Implementation of Artificial Intelligence, Synergeti...Gastric Cancer: Сlinical Implementation of Artificial Intelligence, Synergeti...
Gastric Cancer: Сlinical Implementation of Artificial Intelligence, Synergeti...
 
Call girls Service Phullen / 9332606886 Genuine Call girls with real Photos a...
Call girls Service Phullen / 9332606886 Genuine Call girls with real Photos a...Call girls Service Phullen / 9332606886 Genuine Call girls with real Photos a...
Call girls Service Phullen / 9332606886 Genuine Call girls with real Photos a...
 
Ahmedabad Call Girls Book Now 9630942363 Top Class Ahmedabad Escort Service A...
Ahmedabad Call Girls Book Now 9630942363 Top Class Ahmedabad Escort Service A...Ahmedabad Call Girls Book Now 9630942363 Top Class Ahmedabad Escort Service A...
Ahmedabad Call Girls Book Now 9630942363 Top Class Ahmedabad Escort Service A...
 

Case-crossover study

  • 1. Analysis of Time-series Data Case-crossover Study Jinseob Kim July 17, 2015 Jinseob Kim Analysis of Time-series Data July 17, 2015 1 / 30
  • 2. Contents 1 Concepts Individual data Design 2 Conditional logistic regression Review Basic linear regression Logistic regression Conditional logistic regression 3 Practice Issues In R Jinseob Kim Analysis of Time-series Data July 17, 2015 2 / 30
  • 3. Objective 1 Individual risk VS population risk 2 Case-crossover design의 개념 3 주의사항 4 적용: season package in R Jinseob Kim Analysis of Time-series Data July 17, 2015 3 / 30
  • 4. Concepts Contents 1 Concepts Individual data Design 2 Conditional logistic regression Review Basic linear regression Logistic regression Conditional logistic regression 3 Practice Issues In R Jinseob Kim Analysis of Time-series Data July 17, 2015 4 / 30
  • 5. Concepts Individual data Two approaches to see the relationship between weather and health outcome Population based study Y: # events (daily death counts or # hospital admissions) X: temperature Estimates pop’n risk (% change in daily death counts corresponding to the change in temperature) Individual based study Y : 1 if an event occurs, 0 otherwise X : temperature Estimates individual risk (% change in individual probability of event or odds ratio corresponding to the change in temperature) Jinseob Kim Analysis of Time-series Data July 17, 2015 5 / 30
  • 6. Concepts Individual data Data structure change (Year,week,case) (2006,1,20) : 1 case (Year,week,event) (2006,1,1), (2006,1,1), · · · , (2006,1,1) : 20개 case (2005,53,0), · · · , (2005,53,0), (2006,2,0), · · · , (2006,2,0) : controls.. Jinseob Kim Analysis of Time-series Data July 17, 2015 6 / 30
  • 7. Concepts Design Case + Crossover Case: 환자만 이용. Crossover: 환자의 다른 시점이 대조군. Jinseob Kim Analysis of Time-series Data July 17, 2015 7 / 30
  • 8. Concepts Design If average (air pollution) of controls < average (air pollution) of case days.. We conclude that the event is associated with higher values of air pollution Jinseob Kim Analysis of Time-series Data July 17, 2015 8 / 30
  • 9. Concepts Design Various control day Time trend로 인한 bias 보정 Jinseob Kim Analysis of Time-series Data July 17, 2015 9 / 30
  • 10. Conditional logistic regression Contents 1 Concepts Individual data Design 2 Conditional logistic regression Review Basic linear regression Logistic regression Conditional logistic regression 3 Practice Issues In R Jinseob Kim Analysis of Time-series Data July 17, 2015 10 / 30
  • 11. Conditional logistic regression Review Basic linear regression Remind β estimation in linear regression 1 Ordinary Least Square(OLS): semi-parametric 2 Maximum Likelihood Estimator(MLE): parametric Jinseob Kim Analysis of Time-series Data July 17, 2015 11 / 30
  • 12. Conditional logistic regression Review Basic linear regression Least Square(최소제곱법) 제곱합을 최소로: y 정규성에 대한 가정 필요없다. Figure: OLS Fitting Jinseob Kim Analysis of Time-series Data July 17, 2015 12 / 30
  • 13. Conditional logistic regression Review Basic linear regression Likelihood?? 가능도(likelihood) VS 확률(probability) Discrete: 가능도 = 확률 - 주사위 던져 1나올 확률은 1 6 Continuous: 가능도 != 확률 - 0∼1 에서 숫자 하나 뽑았을 때 0.7일 확률은 0... Jinseob Kim Analysis of Time-series Data July 17, 2015 13 / 30
  • 14. Conditional logistic regression Review Basic linear regression Maximum likelihood estimator(MLE) 최대가능도추정량: 1, · · · , n이 서로 독립이라하자. 1 각각의 가능도 함수를 구한다. 2 가능도를 전부 곱하면 전체 사건의 가능도 (독립이니까) 3 가능도를 최대로 하는 β를 구한다. Jinseob Kim Analysis of Time-series Data July 17, 2015 14 / 30
  • 15. Conditional logistic regression Review Basic linear regression MLE: 최대가능도추정량 데이터가 일어날 가능성을 최대로: y또는 분포가정필요. Jinseob Kim Analysis of Time-series Data July 17, 2015 15 / 30
  • 16. Conditional logistic regression Review Basic linear regression Logistic function: MLE Figure: Fitting Logistic Function Jinseob Kim Analysis of Time-series Data July 17, 2015 16 / 30
  • 17. Conditional logistic regression Review Basic linear regression LRT? Ward? score? Likelihood Ratio Test VS Ward test VS score test 1 통계적 유의성 판단하는 방법들. 2 가능도비교 VS 베타값비교 VS 기울기비교/ Jinseob Kim Analysis of Time-series Data July 17, 2015 17 / 30
  • 18. Conditional logistic regression Review Basic linear regression 비교 Figure: Comparison Jinseob Kim Analysis of Time-series Data July 17, 2015 18 / 30
  • 19. Conditional logistic regression Logistic regression Model Log( pi 1 − pi ) = β0 + β1 · xi1 pi = P(Yi = 1) = exp(β0 + β1 · xi1) 1 + exp(β0 + β1 · xi1) P(Yi = 0) = 1 1 + exp(β0 + β1 · xi1) P(Yi = yi ) = ( exp(β0 + β1 · xi1) 1 + exp(β0 + β1 · xi1) )yi ( 1 1 + exp(β0 + β1 · xi1) )1−yi Jinseob Kim Analysis of Time-series Data July 17, 2015 19 / 30
  • 20. Conditional logistic regression Logistic regression Likelihood Likelihood= n i=1 P(Yi = yi ) = n i=1 ( exp(β0 + β1 · xi1) 1 + exp(β0 + β1 · xi1) )yi ( 1 1 + exp(β0 + β1 · xi1) )1−yi 개인별로 가능도(데이터의 상황이 나올 확률)이 나온다. 그것들을 다 곱하면 Likelihood 이것을 최소로 하는 β를 구하는 것. Case나 Control이나 따로따로 Likelihood를 구한다. Jinseob Kim Analysis of Time-series Data July 17, 2015 20 / 30
  • 21. Conditional logistic regression Conditional logistic regression Conditional likelihood Matched case-control set Case와 그의 control들(1:1 or 1:N)이 한 쌍!! 쌍별로 likelihood가 나온다. 쌍별로 우리의 데이터를 볼 가능성을 계산. 모든 쌍에 대해 다 곱하면 전체 Likelihood Jinseob Kim Analysis of Time-series Data July 17, 2015 21 / 30
  • 22. Conditional logistic regression Conditional logistic regression Definition ith strata(1 ≤ i ≤ N): 1 case(이름:갑), ni control이라 하자. Conditional likelihood of ith strata= Li = P(갑이 case고 나머지가 control|case 1명&control ni 명) Total likelihood= N i=1 Li Jinseob Kim Analysis of Time-series Data July 17, 2015 22 / 30
  • 23. Practice Contents 1 Concepts Individual data Design 2 Conditional logistic regression Review Basic linear regression Logistic regression Conditional logistic regression 3 Practice Issues In R Jinseob Kim Analysis of Time-series Data July 17, 2015 23 / 30
  • 24. Practice Issues Control 확실하냐? 앞 뒤 7일, 14일 등.. control이 확실?? Exposure → Disease가 짧아야.. Exposure 가 축적되지 않아야.. 급성질환, 폭로의 일시적 효과 (ex:폭염과 사망) Jinseob Kim Analysis of Time-series Data July 17, 2015 24 / 30
  • 25. Practice In R season package > library(season) > data(CVDdaily) # cardiovascular disease data > CVDdaily=subset(CVDdaily,date<=as.Date('1987-12-31')) # subset for exampl > head(CVDdaily) date cvd dow tmpd o3mean o3tmean Mon Tue Wed Thu Fri Sat 3 1987-01-01 55 Thursday 54.50 -16.0073 -15.89619 0 0 0 1 0 0 5 1987-01-02 73 Friday 58.50 -11.6595 -11.19102 0 0 0 0 1 0 9 1987-01-03 64 Saturday 55.25 -10.3241 -10.51787 0 0 0 0 0 1 12 1987-01-04 57 Sunday 54.75 -18.6471 -18.27014 0 0 0 0 0 0 15 1987-01-05 56 Monday 54.50 -17.5291 -17.13201 1 0 0 0 0 0 18 1987-01-06 65 Tuesday 49.75 -22.7846 -22.74711 0 1 0 0 0 0 month winter spring summer autumn 3 1 1 0 0 0 5 1 1 0 0 0 9 1 1 0 0 0 12 1 1 0 0 0 15 1 1 0 0 0 18 1 1 0 0 0 Jinseob Kim Analysis of Time-series Data July 17, 2015 25 / 30
  • 26. Practice In R casecross() > # Effect of ozone on CVD death > model1 = casecross(cvd ~ o3mean+tmpd+Mon+Tue+Wed+Thu+Fri+Sat, data=CVDdaily) > # match on day of the week > model2 = casecross(cvd ~ o3mean+tmpd,matchdow=TRUE, data=CVDdaily) > # match on temperature to within a degree > model3 = casecross(cvd ~ o3mean+Mon+Tue+Wed+Thu+Fri+Sat, data=CVDdaily, matchconf='tmpd', confrange=1) Jinseob Kim Analysis of Time-series Data July 17, 2015 26 / 30
  • 27. Practice In R casecross(formula = cvd ~ o3mean + tmpd + Mon + Tue + Wed + Thu + Fri + Sat, data = CVDdaily, exclusion = 2, stratalength = 28, matchdow = FALSE, usefinalwindow = FALSE, matchconf = "", confrange = 0, stratamonth = FALSE) Time-stratified case-crossover with a stratum length of 28 days Total number of cases 17502 Number of case days with available control days 364 Average number of control days per case day 23.2 Parameter Estimates: coef exp(coef) se(coef) z Pr(>|z|) o3mean -0.002882613 0.9971215 0.001128975 -2.55330077 0.01067073 tmpd 0.001461400 1.0014625 0.001981047 0.73769030 0.46070267 Mon 0.042733425 1.0436596 0.028942815 1.47647783 0.13981566 Tue 0.057910712 1.0596204 0.028772745 2.01269332 0.04414690 Wed -0.010008025 0.9900419 0.029171937 -0.34307029 0.73154558 Thu -0.016790296 0.9833499 0.029455877 -0.57001513 0.56866744 Fri 0.027247952 1.0276226 0.029173235 0.93400517 0.35030123 Sat 0.001855841 1.0018576 0.028900116 0.06421568 0.94879849 Jinseob Kim Analysis of Time-series Data July 17, 2015 27 / 30
  • 28. Practice In R casecross(formula = cvd ~ o3mean + tmpd, data = CVDdaily, matchdow = TRUE, exclusion = 2, stratalength = 28, usefinalwindow = FALSE, matchconf = "", confrange = 0, stratamonth = FALSE) Time-stratified case-crossover with a stratum length of 28 days Matched on day of the week Total number of cases 17502 Number of case days with available control days 364 Average number of control days per case day 3 Parameter Estimates: coef exp(coef) se(coef) z Pr(>|z|) o3mean -0.0030752572 0.9969295 0.001188540 -2.5874238 0.009669658 tmpd -0.0004095116 0.9995906 0.002131744 -0.1921017 0.847662557 Jinseob Kim Analysis of Time-series Data July 17, 2015 28 / 30
  • 29. Practice In R casecross(formula = cvd ~ o3mean + Mon + Tue + Wed + Thu + Fri + Sat, data = CVDdaily, matchconf = "tmpd", confrange = 1, exclusion = 2, stratalength = 28, matchdow = FALSE, usefinalwindow = FA stratamonth = FALSE) Time-stratified case-crossover with a stratum length of 28 days Matched on tmpd plus/minus 1 Total number of cases 15180 Number of case days with available control days 318 Average number of control days per case day 4.9 Parameter Estimates: coef exp(coef) se(coef) z Pr(>|z|) o3mean -0.003238583 0.9967667 0.00131839 -2.4564691 1.403099e-02 Mon 0.182058170 1.1996840 0.03577818 5.0885255 3.608582e-07 Tue 0.144181049 1.1550932 0.03563272 4.0463108 5.203115e-05 Wed 0.099443480 1.1045560 0.03554924 2.7973451 5.152447e-03 Thu 0.088518237 1.0925542 0.03459482 2.5587140 1.050601e-02 Fri 0.108107305 1.1141673 0.03437323 3.1451022 1.660288e-03 Sat 0.023660066 1.0239422 0.03525152 0.6711786 5.021068e-01 Jinseob Kim Analysis of Time-series Data July 17, 2015 29 / 30
  • 30. Practice In R END Email : secondmath85@gmail.com Jinseob Kim Analysis of Time-series Data July 17, 2015 30 / 30