35
Non-linear regression and seemingly unrelated regression A \ Prof. Steve Quinn Department of Statistics, Data Science and Epidemiology, Swinburne University of Technology, Melbourne, Australia [email protected]

Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

  • Upload
    others

  • View
    7

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Non-linear regression and seemingly unrelated regression

A \ Prof. Steve QuinnDepartment of Statistics, Data Science and Epidemiology, Swinburne University of Technology, Melbourne, [email protected]

Page 2: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Two part analysis

• The problem

• Trying to identify autism

• believe that ocular response to a flash at different frequencies is different in autistic vs normal children

• Want to identify the best flash frequency

2

Page 3: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

• They know what the data will look like (roughly)

Mixed model and Non-linear regression

3

Page 4: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

• They also know what the wave is made up of a normal density curve and a logistic curve (a cumulative distribution function)

Non-linear regression

4

Page 5: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

• There is a theoretical framework for this decomposition

• “On-response amplitude” (b-waves) follows the logistic growth function

• “Off-response amplitude” (d-waves) follows Gaussian density function

Non-linear regression

5

Page 6: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Mixed model analysis

• The data – two groups – each person contributes 9 observations

6

Page 7: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Mixed model analysis

7

Page 8: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Mixed model analysis

8

Page 9: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Mixed model analysis

9

Page 10: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Mixed model analysis

The authors ended up wanting this picture:

10

Page 11: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Non-linear regression

• The authors wanted to estimate:

11

Page 12: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

• The data – one group

Non-linear regression first attempt

12

Page 13: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Non-linear regression – first attempt

Wrong starting values:

13

Page 14: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Non-linear regression – SigmaPlot - $1250

14

Page 15: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Non-linear regression – Stata

15

Page 16: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Both groups, one analysis - nlsur

16

Zellner, A. An efficient method of estimating seemingly… American Statistician Journal, 1962

Page 17: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

17

This example

Page 18: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Both groups, one analysis - nlsur

18

Page 19: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Both groups, one analysis - nlsur

19

Page 20: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

20

Robust standard errors

nlsur ….., vce(robust)

Page 21: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Both groups, one analysis - nlsur

21

Page 22: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

22

Provides joint estimates from several regression models

Estimates are more efficient

• accounts for correlated errors• Greater correlation increases errors

• Multicollinearity between independent variables increases efficiency

• SE’s are smaller

Seemingly unrelated regression

Page 23: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

23

Seemingly unrelated regression – rarely used

Chen. C, et.al. Altered metabolite levels and correlations… (Metabolomics) 2017.

n = 158, 113 response variables, 15 covariates

SUR doesn’t account for multiple comparisons.

(Benjamini-Hochberg false discovery algorithm)

Page 24: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

24

Outcomes don’t need to be the same in kind

Xuecai, Xu, et.al. Accident severity and traffic signs… (Accident analysis and prevention) 2018.

Page 25: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

25

This example

Page 26: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

26

Joint model – nlsur

Separate model – nl

This example

Page 27: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Questions or comment?

27

Page 28: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

28

clustered standard errors

Page 29: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Seemingly unrelated non-linear regression

The code:

29

Page 30: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Seemingly unrelated regression

30

Page 31: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Mixed model analysis

How do you model this curve?

31

Page 32: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Mixed model analysis

Every function can be modelled as accurately as required by a polynomial curve.

Why did I know to stop at freq4?

– can run the model with freq up to the 5th power and do a LR test

– can run the model with freq up to the 5th power and check the highest terms – they will be non-significant .

32

Page 33: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

The output:

Seemingly unrelated non-linear regression

33

Page 34: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Seemingly unrelated non-linear regression

The code:

34

Page 35: Non-linear regression and seemingly unrelated …...Non-linear regression 4 •There is a theoretical framework for this decomposition •“On-response amplitude” (b-waves) follows

Comparing the estimates:

Seemingly unrelated non-linear regression

35