You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, previously people have investigated the use of permutations for hypothesis testing of the smooth terms in GAMs (e.g. here). I'm relatively new to GAMs and wondered if you see any issues with how I implemented such a permutation testing procedure using pyGAM:
Compute a GAM with the DV and IVs.
Store the deviance explained from the GAM output using gam.score(IVs, DV)
Randomly shuffle one of the IVs n_perms times (e.g. 10,000 times).
Compute the GAM with the randomly shuffled IV.
Store the deviance explained for each random permutation.
Get p-value from the proportion of permutations that exceed the original deviance explained.
Repeat this process for the other IVs
Does this make sense to you?
The text was updated successfully, but these errors were encountered:
Hello, previously people have investigated the use of permutations for hypothesis testing of the smooth terms in GAMs (e.g. here). I'm relatively new to GAMs and wondered if you see any issues with how I implemented such a permutation testing procedure using pyGAM:
gam.score(IVs, DV)
Does this make sense to you?
The text was updated successfully, but these errors were encountered: