latinamerican macroevolution workshop unam 2018phytools.org/mexico2018/lec/pgls.pdf ·...

17
Latinamerican Macroevolution workshop UNAM 2018 Alejandro Gonzalez-Voyer Instituto de Ecología UNAM

Upload: others

Post on 30-Sep-2020

10 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Latinamerican Macroevolution workshop UNAM 2018phytools.org/mexico2018/lec/PGLS.pdf · Latinamerican Macroevolution workshop UNAM 2018 Alejandro Gonzalez-Voyer Instituto de Ecología

LatinamericanMacroevolutionworkshopUNAM2018

AlejandroGonzalez-VoyerInstitutodeEcología

UNAM

Page 2: Latinamerican Macroevolution workshop UNAM 2018phytools.org/mexico2018/lec/PGLS.pdf · Latinamerican Macroevolution workshop UNAM 2018 Alejandro Gonzalez-Voyer Instituto de Ecología
Page 3: Latinamerican Macroevolution workshop UNAM 2018phytools.org/mexico2018/lec/PGLS.pdf · Latinamerican Macroevolution workshop UNAM 2018 Alejandro Gonzalez-Voyer Instituto de Ecología

Altitude

SVL

Page 4: Latinamerican Macroevolution workshop UNAM 2018phytools.org/mexico2018/lec/PGLS.pdf · Latinamerican Macroevolution workshop UNAM 2018 Alejandro Gonzalez-Voyer Instituto de Ecología

s1s2s3s4s5s6s7s8s9s10s11s12s13s14s15s16s17s18s19s20s21s22s23s24s25s26s27s28s29s30s31s32s33s34s35s36s37s38s39s40s41s42s43s44s45s46s47s48s49s50

0

12.5

25

37.5

50

TypeIErrorSinfilogenia FilogenéJco

500simulationsofphenotypicevolutionfor2independenttraitsalongthephylogeny

%Significantcorrelations

Risksofignoringphylogeneticnon-independence

Page 5: Latinamerican Macroevolution workshop UNAM 2018phytools.org/mexico2018/lec/PGLS.pdf · Latinamerican Macroevolution workshop UNAM 2018 Alejandro Gonzalez-Voyer Instituto de Ecología

PhylogeneticGeneralizedLeastSquares(PGLS)

• Generalizedleastsquaresmodelwherethephylogeneticrelationshipsamongspeciesareincorporatedintheerrorterm

• Variancecovariancematrixdescribestheexpectedsimilarityamongspeciesbasedonthedegreeofsharedancestry

• Moreprecisely:expectedcovarianceamongresidualsduetosharedancestry(phylogeneticrelationships)amongspecies

Grafen1989;Martins&Hansen1997

Page 6: Latinamerican Macroevolution workshop UNAM 2018phytools.org/mexico2018/lec/PGLS.pdf · Latinamerican Macroevolution workshop UNAM 2018 Alejandro Gonzalez-Voyer Instituto de Ecología

Covarianceandphylogeneticrelationships

A

B

CD

EFG

H

I

J

L

K

A&B:Expectedcovariance=high

A&D:Expectedcovariance=low

A&K:Expectedcovariance=null

Page 7: Latinamerican Macroevolution workshop UNAM 2018phytools.org/mexico2018/lec/PGLS.pdf · Latinamerican Macroevolution workshop UNAM 2018 Alejandro Gonzalez-Voyer Instituto de Ecología

A B C D E F G H I J K LA δ2 + + + + - - - 0 0 0 0B δ2 + + + - - - 0 0 0 0C δ2 + + - - - 0 0 0 0D δ2 + - - - 0 0 0 0E δ2 - - - 0 0 0 0F δ2 + + 0 0 0 0G δ2 + 0 0 0 0H δ2 0 0 0 0I δ2 + + +J δ2 + +K δ2 +L δ2

Variancecovariancematrix

Page 8: Latinamerican Macroevolution workshop UNAM 2018phytools.org/mexico2018/lec/PGLS.pdf · Latinamerican Macroevolution workshop UNAM 2018 Alejandro Gonzalez-Voyer Instituto de Ecología

�8

A B C D E F G H A B C D E F G H

A B

CD

EF

GH

A

B

C

D

E

F G

H

Page 9: Latinamerican Macroevolution workshop UNAM 2018phytools.org/mexico2018/lec/PGLS.pdf · Latinamerican Macroevolution workshop UNAM 2018 Alejandro Gonzalez-Voyer Instituto de Ecología

• AdvantagesofPGLS:–Modeloftraitevolutionisdeterminedbythevariancecovariancematrix,hencecanaccomodatedifferentevolutionarymodels–Canincorporateanestimateofintraspecificmeasurementerrorinthemodel–Cancombinecontinuousanddiscretetraitssimplyinasinglemodel–Canobtaintheinterceptvalue

Page 10: Latinamerican Macroevolution workshop UNAM 2018phytools.org/mexico2018/lec/PGLS.pdf · Latinamerican Macroevolution workshop UNAM 2018 Alejandro Gonzalez-Voyer Instituto de Ecología

Phylogeneticgeneralizedleastsquares

• UseofPGLSdoesnot“remove”partofthecorrelationduetothephylogeny

• Theeffectoftakingphylogenyintoaccountistoreducethevariancearoundtheestimatedslope

• Theirmeansarenotbecausesinceestimatesofregressioncoefficientsareunbiasedwhetherornotthecorrectphylogenyistakenintoaccount.

Rohlf2006

Page 11: Latinamerican Macroevolution workshop UNAM 2018phytools.org/mexico2018/lec/PGLS.pdf · Latinamerican Macroevolution workshop UNAM 2018 Alejandro Gonzalez-Voyer Instituto de Ecología

ModelsofEvolution

• PGLSmethodestimatesanevolutionaryparametersimultaneouslywithmodelfit

• Evolutionaryparameter(λ,α)describesthemodelofevolution&adjuststhevariancecovariancematrixtothemodel– λ:adjuststhevariancecovariancematrixtoaBrownianevolutionmodel– 1:evolutionfollowsaBrownianmodel– 0:evolutiondoesnotfollowaBrownianmodel,thereisnophylogeneticsignalintheresiduals

Page 12: Latinamerican Macroevolution workshop UNAM 2018phytools.org/mexico2018/lec/PGLS.pdf · Latinamerican Macroevolution workshop UNAM 2018 Alejandro Gonzalez-Voyer Instituto de Ecología

PICvsPGLS• IfcovarianceintheresidualsfollowsastrictBrownianmodelPIC&PGLSshouldconvergeinthesameresult

• RegressionsthroughtheoriginofPICsareidenticaltothoseobtainedusingPGLSwithaninterceptincluded

• HoweverwhenevolutionisnotBrownianPGLSoutperformsPICs

• Maximumlikelihoodestimateoflambdaallowsfornecessarycorrectionforestimatedcovarianceofresiduals

Rohlf2001;Revell2010

Page 13: Latinamerican Macroevolution workshop UNAM 2018phytools.org/mexico2018/lec/PGLS.pdf · Latinamerican Macroevolution workshop UNAM 2018 Alejandro Gonzalez-Voyer Instituto de Ecología

The7deadlysinsofcomparativeanalyses

1. PuttingunduefaithinmodelswithlowR2–OnlyasinglepackageinRestimatesR2forphylogenticGLSmodels–SomequestiontheaccuracyofR2estimatesinphylogeneticGLS

Freckleton2009

Page 14: Latinamerican Macroevolution workshop UNAM 2018phytools.org/mexico2018/lec/PGLS.pdf · Latinamerican Macroevolution workshop UNAM 2018 Alejandro Gonzalez-Voyer Instituto de Ecología

2. Reportingtheresultsofphylogeneticallyindependentandphylogeneticanalyses:– thetwomodelsmakedifferentassumptions

aboutthedistributionofdata– atbestregardedasalternativemodelsofthe

samedata– assuchtheyshouldNOTbetreatedequally

3. Nottestingdistributionalassumptions:– Phylogeneticanalysesmakeassumptionsabout

thedistributionofresidualsthatarethesameasthosemadeinnonphylogeneticanalyses

– Roffersdifferentwaysoftestingresidualdistributions(incapersimplyuseplot()function)

Freckleton2009

Page 15: Latinamerican Macroevolution workshop UNAM 2018phytools.org/mexico2018/lec/PGLS.pdf · Latinamerican Macroevolution workshop UNAM 2018 Alejandro Gonzalez-Voyer Instituto de Ecología

4. Datadredging:– becausedataarenotgeneratedexperimentally,

therelationshipsfoundareonlycorrelative– possibilityofhiddenvariablesmeanthat

significantcorrelationsmaybemistakenlytakenasimplyingacausalrelationshipwhennosuchrelationshipexists

– shouldavoidthetemptationofincludingalargenumberofpredictorsto“seewhatcomesout”

Freckleton2009

Page 16: Latinamerican Macroevolution workshop UNAM 2018phytools.org/mexico2018/lec/PGLS.pdf · Latinamerican Macroevolution workshop UNAM 2018 Alejandro Gonzalez-Voyer Instituto de Ecología

5. Treatingresidualsasdata:– Useofresidualstocontrolforconfoundingvariablesis

wrong– Canresultinbiases– UseANCOVAtocontrolforallometriceffectsor

confoundingvariables6. Ignoringalternativemodels:– UsemodelcomparisonwithAICorAICC

7. Ignoringqualitycontrolofdata:– Datafromdisparatesourcesmaybeofdifferent

quality– Lowqualitydatacompromisesstatisticalpower– Missingdatacanleadtobiasesintheoutcomeof

analysesFreckleton2009

Page 17: Latinamerican Macroevolution workshop UNAM 2018phytools.org/mexico2018/lec/PGLS.pdf · Latinamerican Macroevolution workshop UNAM 2018 Alejandro Gonzalez-Voyer Instituto de Ecología

Correlatesofspeciesrichness

• Intrinsicorextrinsicspeciescharacteristicsmayinfluencespeciationrates

• CanusePGLSmodelstoanalyzethecorrelationbetweenspeciescharacteristicsandspeciesrichness

• Dependentvariableinsuchmodelsisrateofdiversificationorspeciesrichness