Regression analysis Tamuno Alfred, PhD Biostatistician DataCamp - - PowerPoint PPT Presentation

regression analysis
SMART_READER_LITE
LIVE PREVIEW

Regression analysis Tamuno Alfred, PhD Biostatistician DataCamp - - PowerPoint PPT Presentation

DataCamp Designing and Analyzing Clinical Trials in R DESIGNING AND ANALYZING CLINICAL TRIALS IN R Regression analysis Tamuno Alfred, PhD Biostatistician DataCamp Designing and Analyzing Clinical Trials in R Explanatory variables DataCamp


slide-1
SLIDE 1

DataCamp Designing and Analyzing Clinical Trials in R

Regression analysis

DESIGNING AND ANALYZING CLINICAL TRIALS IN R

Tamuno Alfred, PhD

Biostatistician

slide-2
SLIDE 2

DataCamp Designing and Analyzing Clinical Trials in R

Explanatory variables

slide-3
SLIDE 3

DataCamp Designing and Analyzing Clinical Trials in R

Explanatory variables

Also referred to as covariates, independent or predictor variables. Examples include: age sex baseline values disease severity lifestyle factors

slide-4
SLIDE 4

DataCamp Designing and Analyzing Clinical Trials in R

Explanatory variables

slide-5
SLIDE 5

DataCamp Designing and Analyzing Clinical Trials in R

Simple linear regression

slide-6
SLIDE 6

DataCamp Designing and Analyzing Clinical Trials in R

Simple linear regression

slide-7
SLIDE 7

DataCamp Designing and Analyzing Clinical Trials in R

Simple linear regression

slide-8
SLIDE 8

DataCamp Designing and Analyzing Clinical Trials in R

Simple linear regression

slide-9
SLIDE 9

DataCamp Designing and Analyzing Clinical Trials in R

Simple linear regression

slide-10
SLIDE 10

DataCamp Designing and Analyzing Clinical Trials in R

Simple linear regression

slide-11
SLIDE 11

DataCamp Designing and Analyzing Clinical Trials in R

Simple linear regression

asthma.trial$group <- relevel(asthma.trial$group, ref="Placebo") asthma.reg1 <- lm(fev.change ~group, asthma.trial) summary(asthma.reg1)

slide-12
SLIDE 12

DataCamp Designing and Analyzing Clinical Trials in R

Simple linear regression

asthma.trial$group <- relevel(asthma.trial$group, ref="Placebo") asthma.reg1<-lm(fev.change ~group, asthma.trial) summary(asthma.reg1)

slide-13
SLIDE 13

DataCamp Designing and Analyzing Clinical Trials in R

Simple linear regression

t.test(fev.change~group, var.equal=TRUE, data=asthma.trial)

slide-14
SLIDE 14

DataCamp Designing and Analyzing Clinical Trials in R

Multivariable linear regression

slide-15
SLIDE 15

DataCamp Designing and Analyzing Clinical Trials in R

Multivariable linear regression

asthma.reg2<-lm(fev.change ~group + age, asthma.trial) summary(asthma.reg2)

slide-16
SLIDE 16

DataCamp Designing and Analyzing Clinical Trials in R

Logistic regression

Binary outcomes

slide-17
SLIDE 17

DataCamp Designing and Analyzing Clinical Trials in R

Logistic regression

asthma.logreg1=glm(attack~group + age, family=binomial(link="logit"), asthma.trial) summary(asthma.logreg1) exp(coefficients(asthma.logreg1)[2]) exp(confint(asthma.logreg1)[2,])

slide-18
SLIDE 18

DataCamp Designing and Analyzing Clinical Trials in R

Let's practice!

DESIGNING AND ANALYZING CLINICAL TRIALS IN R

slide-19
SLIDE 19

DataCamp Designing and Analyzing Clinical Trials in R

Analysis sets, subgroups and interactions

DESIGNING AND ANALYZING CLINICAL TRIALS IN R

Tamuno Alfred, PhD

Biostatistician

slide-20
SLIDE 20

DataCamp Designing and Analyzing Clinical Trials in R

Patient adherence

slide-21
SLIDE 21

DataCamp Designing and Analyzing Clinical Trials in R

Intention-to-treat (ITT)

Evaluate according to planned treatment Consider all patients irrespective of treatment received and compliance May lead to dilution of treatment effect estimate Reflects real-life conditions

slide-22
SLIDE 22

DataCamp Designing and Analyzing Clinical Trials in R

Analysis sets

Full Analysis Set (FAS): Generally all randomized patients May exclude patients who violate eligibility criteria or without post-baseline visits Primary efficacy analyses Follows ITT principle

slide-23
SLIDE 23

DataCamp Designing and Analyzing Clinical Trials in R

Analysis sets

Full Analysis Set (FAS): Generally all randomized patients May exclude patients who violate eligibility criteria or without post-baseline visits Primary efficacy analyses Follows ITT principle Per-Protocol Set (PP): Subset of ‘compliers’ May better reflect pure treatment effect

slide-24
SLIDE 24

DataCamp Designing and Analyzing Clinical Trials in R

Analysis sets

Conducted on 201 FAS patients

asthma.fas<-lm(fev.change ~group , asthma.trial) summary(asthma.fas)

slide-25
SLIDE 25

DataCamp Designing and Analyzing Clinical Trials in R

Analysis sets

Conducted on 201 FAS patients Conducted on 183 PP patients

asthma.fas<-lm(fev.change ~group , asthma.trial) summary(asthma.fas) asthma.pp<-lm(fev.change ~group , asthma.trial, subset = pp==1) summary(asthma.pp)

slide-26
SLIDE 26

DataCamp Designing and Analyzing Clinical Trials in R

Subgroup analysis

Evaluate treatment responses in different patient groups, e.g. Males only <50 years Non-obese patients

slide-27
SLIDE 27

DataCamp Designing and Analyzing Clinical Trials in R

Subgroup analysis

asthma.u65<-lm( fev.change ~group , asthma.trial, subset = age<65) summary(asthma.u65) asthma.o65<-lm( fev.change ~group , asthma.trial, subset = age>=65) summary(asthma.o65)

slide-28
SLIDE 28

DataCamp Designing and Analyzing Clinical Trials in R

Subgroup analysis

Rationale for subgroups Pre-specified in Statistical Analysis Plan Sufficient numbers of patients Consider impact of multiple testing

slide-29
SLIDE 29

DataCamp Designing and Analyzing Clinical Trials in R

Interaction

slide-30
SLIDE 30

DataCamp Designing and Analyzing Clinical Trials in R

Interaction

asthma.ageg <- lm( fev.change ~group + agegroup , asthma.trial) summary(asthma.ageg)

slide-31
SLIDE 31

DataCamp Designing and Analyzing Clinical Trials in R

Interaction

asthma.ageint <- lm( fev.change ~ group*agegroup , asthma.trial) summary(asthma.ageint)

slide-32
SLIDE 32

DataCamp Designing and Analyzing Clinical Trials in R

Interaction

asthma.ageint<-lm( fev.change ~group*agegroup , asthma.trial) summary(asthma.ageint)

slide-33
SLIDE 33

DataCamp Designing and Analyzing Clinical Trials in R

Now your turn!

DESIGNING AND ANALYZING CLINICAL TRIALS IN R

slide-34
SLIDE 34

DataCamp Designing and Analyzing Clinical Trials in R

Multiplicity of data

DESIGNING AND ANALYZING CLINICAL TRIALS IN R

Tamuno Alfred, PhD

Biostatistician

slide-35
SLIDE 35

DataCamp Designing and Analyzing Clinical Trials in R

Multiplicity of data

Multiple subgroups of patients Multiple looks at data (interim analyses) Multiple outcomes of interest Multiple study visits

slide-36
SLIDE 36

DataCamp Designing and Analyzing Clinical Trials in R

Multiple testing

slide-37
SLIDE 37

DataCamp Designing and Analyzing Clinical Trials in R

Bonferroni correction

Divide the overall significance level by the number of tests to generate new significance levels, or Multiply the p-value from the tests by the number of tests to generate the adjusted p-value

slide-38
SLIDE 38

DataCamp Designing and Analyzing Clinical Trials in R

Bonferroni correction

Divide the overall significance level by the number of tests to generate new significance levels, or Multiply the p-value from the tests by the number of tests to generate the adjusted p-value

0.05/4

slide-39
SLIDE 39

DataCamp Designing and Analyzing Clinical Trials in R

Bonferroni correction

Divide the overall significance level by the number of tests to generate new significance levels, or Multiply the p-value from the tests by the number of tests to generate the adjusted p-value May be conservative Alternatives include Holm–Bonferroni method and false discovery rate

0.05/4

slide-40
SLIDE 40

DataCamp Designing and Analyzing Clinical Trials in R

Subgroup analysis

asthma.u65<-lm( fev.change ~group , asthma.trial, subset = age<65) summary(asthma.u65) asthma.o65<-lm( fev.change ~group , asthma.trial, subset = age>=65) summary(asthma.o65)

slide-41
SLIDE 41

DataCamp Designing and Analyzing Clinical Trials in R

Subgroup analysis

Large number of subgroups can be derived

slide-42
SLIDE 42

DataCamp Designing and Analyzing Clinical Trials in R

Subgroup analysis

Large number of subgroups can be derived Increase chance of observing a Type I error

slide-43
SLIDE 43

DataCamp Designing and Analyzing Clinical Trials in R

Subgroup analysis

Large number of subgroups can be derived Increase chance of observing a Type I error Lack of power within subgroups

slide-44
SLIDE 44

DataCamp Designing and Analyzing Clinical Trials in R

Subgroup analysis

Large number of subgroups can be derived Increase chance of observing a Type I error Lack of power within subgroups Imbalance of other patient characteristics within subgroups

slide-45
SLIDE 45

DataCamp Designing and Analyzing Clinical Trials in R

Subgroup analysis

Large number of subgroups can be derived Increase chance of observing a Type I error Lack of power within subgroups Imbalance of other patient characteristics within subgroups Recommendations: Limit number of subgroups Use external evidence Correct p-values Use interaction tests

slide-46
SLIDE 46

DataCamp Designing and Analyzing Clinical Trials in R

Interim analysis

Multiple looks at the data can increase overall Type I error Trial may stop too early

slide-47
SLIDE 47

DataCamp Designing and Analyzing Clinical Trials in R

Interim analysis

Multiple looks at the data can increase overall Type I error Trial may stop too early Recommendations: Limit the number of looks at the efficacy data Use an appropriate stopping rule, e.g. Pocock or O'Brien-Fleming

library(gsDesign) Pocock <- gsDesign(k=3, test.type=2, sfu="Pocock") 2*(1-pnorm(Pocock$upper$bound))

slide-48
SLIDE 48

DataCamp Designing and Analyzing Clinical Trials in R

Multiple endpoints

Multiple endpoints of interest e.g. different assessments of lung function, occurrence of an asthma attack Recommendations: Prioritize endpoints Correction for multiple testing, e.g. Bonferroni

slide-49
SLIDE 49

DataCamp Designing and Analyzing Clinical Trials in R

Composite endpoints

Can combine certain endpoints May increase statistical power

slide-50
SLIDE 50

DataCamp Designing and Analyzing Clinical Trials in R

Composite endpoints

Can combine certain endpoints May increase statistical power

slide-51
SLIDE 51

DataCamp Designing and Analyzing Clinical Trials in R

Composite endpoints

Can combine certain endpoints May increase statistical power Check results for each endpoint

slide-52
SLIDE 52

DataCamp Designing and Analyzing Clinical Trials in R

Repeated measurements

Outcome collected for participants at several time-points

slide-53
SLIDE 53

DataCamp Designing and Analyzing Clinical Trials in R

Repeated measurements

Outcome collected for participants at several time-points Should not ignore collected data

slide-54
SLIDE 54

DataCamp Designing and Analyzing Clinical Trials in R

Repeated measurements

Outcome collected for participants at several time-points Should not ignore collected data Testing at each time-point increases chance of observing a Type I error Within-patient assessments are likely correlated and not independent

slide-55
SLIDE 55

DataCamp Designing and Analyzing Clinical Trials in R

Repeated measurements

Outcome collected for participants at several time-points Should not ignore collected data Testing at each time-point increases chance of observing a Type I error Within-patient assessments are likely correlated and not independent Recommendations: Summary statistic approach: area under the curve, mean, maximum value, etc More advanced statistical methods, such as mixed models

slide-56
SLIDE 56

DataCamp Designing and Analyzing Clinical Trials in R

Let's look at some examples

DESIGNING AND ANALYZING CLINICAL TRIALS IN R

slide-57
SLIDE 57

DataCamp Designing and Analyzing Clinical Trials in R

Conclusion

DESIGNING AND ANALYZING CLINICAL TRIALS IN R

Tamuno Alfred, PhD

Biostatistician

slide-58
SLIDE 58

DataCamp Designing and Analyzing Clinical Trials in R

Clinical trials

slide-59
SLIDE 59

DataCamp Designing and Analyzing Clinical Trials in R

Guidelines

slide-60
SLIDE 60

DataCamp Designing and Analyzing Clinical Trials in R

Randomization

slide-61
SLIDE 61

DataCamp Designing and Analyzing Clinical Trials in R

Trial designs

slide-62
SLIDE 62

DataCamp Designing and Analyzing Clinical Trials in R

Sample size determination

power.prop.test(p1=0.3, p2=0.15, power=0.8)

slide-63
SLIDE 63

DataCamp Designing and Analyzing Clinical Trials in R

Statistical analyses

Continuous outcomes Two-sample t-tests Linear regression Wilcoxon Rank Sum test Binary outcomes Test for equal proportions Logistic regression

slide-64
SLIDE 64

DataCamp Designing and Analyzing Clinical Trials in R

Further topics

Adverse events Survival analysis Longitudinal data Count data Missing data Meta-analysis

slide-65
SLIDE 65

DataCamp Designing and Analyzing Clinical Trials in R

Thank you

DESIGNING AND ANALYZING CLINICAL TRIALS IN R