Table 2 Results of the GAM fitted for net reproductive rate\(R_{0}\ \)and generation time \(T_{g}\) in Drosophila melanogaster . D is population density, treat is thermal treatment, T P is parental thermal environment,T F1 is offspring thermal environment. srepresents the cubic regression spline for this variables, Sum edf is the sum of effective degrees of freedom; Loglik is log likelihood values, AIC is Akaike information criterion for the model, r2 is determination coefficient. Models with the best fit are shown in bold.