As a rule of thumb, the minimum suggested sample size for a linear model is at least 10 per parameter included in the model (Bolket et al., 2009). I know that in GAMs, different smooth terms can have different effective degrees of freedom (edf) and different number of basis functions depending on the nature of the relationship, which in turn may determine the amount of data that will be needed.
My question is : How can I be sure that I have enough data points to build a GAM or GAMM with certain complexity? Is there a general rule to find the minimum required sample size for a GAM or GAMM?
Reference:
Bolker, B. M., Brooks, M. E., Clark, C. J., Geange, S. W., Poulsen, J. R., Stevens, M. H. H., & White, J.-S. (2009). Generalized linear mixed models: A practical guide for ecology and evolution. Trends in Ecology & Evolution, 24, 127–135. https://doi.org/10.1016/j.tree.2008.10.008