# Ajoutez les variables transformées au tableau bird$logMaxAbund <- log10(bird$MaxAbund) bird$logMass <- log10(bird$Mass) names(bird) # pour visualiser le tableau avec les nouvelles variables hist(bird$logMaxAbund,col="yellowgreen", main="Log transformed", xlab=expression("log"[10]*"(Maximum Abundance)")) hist(bird$logMass,col="yellowgreen", main="Log transformed", xlab=expression("log"[10]*"(Mass)")) shapiro.test(bird$logMaxAbund); skewness(bird$logMaxAbund) shapiro.test(bird$logMass); skewness(bird$logMass) # Refaire l'analyse avec les transformations appropriées lm2 <- lm(bird$logMaxAbund ~ bird$logMass) # Reste-il des problèmes avec ce modèle (hétéroscédasticité, non-indépendance, forte influence)? opar <- par(mfrow=c(2,2)) plot(lm2, pch=19, col="gray") par(opar)