Advanced topics David L Miller & Jason J Roberts This is a - - PowerPoint PPT Presentation

advanced topics
SMART_READER_LITE
LIVE PREVIEW

Advanced topics David L Miller & Jason J Roberts This is a - - PowerPoint PPT Presentation

Advanced topics David L Miller & Jason J Roberts This is a whirlwind tour... ...and some of this is experimental Smoother zoo Cyclic smooths What if things wrap around? (Time, angles, ) Match value and derivative Use


slide-1
SLIDE 1

Advanced topics

David L Miller & Jason J Roberts

slide-2
SLIDE 2

This is a whirlwind tour...

slide-3
SLIDE 3

...and some of this is experimental

slide-4
SLIDE 4

Smoother zoo

slide-5
SLIDE 5

Cyclic smooths

What if things “wrap around”? (Time, angles, …) Match value and derivative Use bs="cc" See ?smooth.construct.cs.smooth.spec

slide-6
SLIDE 6

Duchon splines

Thin plate splines do weird things far from data Local bits are fine, but unpenalised planes are bad Remove the badly behaved bits? (Miller and Kelly, in prep) ?smooth.construct.ds.smooth.spec

slide-7
SLIDE 7

Smoothing in complex regions

Edges are important Whales don't live on land Bad things happen when we don't account for this

slide-8
SLIDE 8

"Finite area" smoothing

Soap film smoothing is one solution Include boundary info in smoother Basis functions are “correct” by construction ?smooth.construct.so.smooth.spec

slide-9
SLIDE 9

Multivariate smooths

Thin plate splines are isotropic 1 unit in any direction is equal Fine for space, not for other things

slide-10
SLIDE 10

Tensor products

Take smooths of each covariate As many covariates as you like! (But takes time) te() can be used like s() in mgcv

(x, z) = (x) (z) sx,z ∑k1 ∑k2 βksx sz

slide-11
SLIDE 11

Example of tensors being used

slide-12
SLIDE 12

Random effects

(independent) normal random effects exploits equivalence of random effects and splines ? gam.vcomp useful when you just have a “few” random effects ?smooth.construct.re.smooth.spec

slide-13
SLIDE 13

Space and time

slide-14
SLIDE 14

Spatial autocorrelation

process (“obvious” structure) In general this is unstable Random effects are sparse but splines are “dense” bad for optimisation engine="gamm" & correlation=...

AR(p) ⇒

slide-15
SLIDE 15

Temporal effects

Could do tensor product space-time? Can marginalise other terms - time trends Does anyone have such long term data?

slide-16
SLIDE 16

Making things faster

slide-17
SLIDE 17

Parallel processing

Some models are very big/slow Run on multiple cores Use engine="bam"! Some constraints in what you can do Experimental, but potentially useful

slide-18
SLIDE 18

Modelling philosophy

slide-19
SLIDE 19

Which covariates should we include?

Dynamic vs static variables Spatial terms? Habitat models?

slide-20
SLIDE 20

Over to Jason and Laura...