Message-ID: <7a17f8bd-0576-0e02-c67b-1c71cc7862f1@gmail.com>
Date: 2018-08-28T13:19:26Z
From: Ben Bolker
Subject: question about a GAM model
In-Reply-To: <0193268F-C663-4A3B-B2B3-D2375D5E1207@ic.ac.uk>
Don't forget to run k.check() on your model to see if you specified a
large enough basis dimension to start with ...
On 2018-08-28 05:51 AM, Bansal, Udita wrote:
> Hi Dani,
>
> I don?t know much about GAM but I know you can look at the plots for fitted model results to check if there is any curvature. You can use the following code:
>
> par(mfrow = c(1,3))
> plot(GAMmodel)
>
> Bests
> Udita
>
> On 28/08/18, 1:58 AM, "R-sig-mixed-models on behalf of dani" <r-sig-mixed-models-bounces at r-project.org on behalf of orchidn at live.com> wrote:
>
> Hi everyone,
>
>
> I have a question about a GAM model where I included three non-parametric terms. I obtained the results below. can I conclude that the associations were in fact linear and run a final GLM model without including splines? To me it seems unnecessary to include splines in the final model. How should I report these results?
>
>
> # Approximate significance of smooth terms:
> # edf Ref.df Chi.sq p-value
> # s(x1) 1.61 2.01 1.17 0.550
> # s(x2) 1.00 1.00 0.00 0.955
> # s(x3) 1.00 1.00 4.61 0.032 *
>
> Thank you very much,
> Dani
>
>
>
>
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-mixed-models at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
>
>
> _______________________________________________
> R-sig-mixed-models at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-sig-mixed-models
>