Skip to main content

Questions tagged [mgcv]

mgcv is a R package for mixed GAM computation vehicle with GCV/AIC/REML smoothness estimation. Use this tag for any on-topic question that (a) involves mgcv either as a critical part of the question or expected answer, & (b) is not just about how to use mgcv or R.

0 votes
0 answers
43 views

I am running a GAMM model to look at the effect of temperature on the daily patterns (in radians) of an animal's movement (step length). The data is hourly, however there are individuals with hours, ...
Amelia's user avatar
  • 31
1 vote
1 answer
76 views

I've got a dataset describing the infestation of an insect on plants in a very large area. The data were collected using several transects. Each transect is composed of 4 plots, with multiple plants ...
JTurra's user avatar
  • 11
2 votes
0 answers
24 views

It might be a bold question, but I wanted to be sure that I am on the right track with my thoughts, since I am no mathematician or something close :) When using GAMs with a smooth-factor interaction, ...
Maki's user avatar
  • 63
3 votes
0 answers
76 views

Recently, I was asked about the partial R2 of predictors or how much each term contributes to the overall explanatory "power" of the model. I think it was a question stemming from the ...
Paul Julian's user avatar
3 votes
1 answer
173 views

I’m working on my master’s thesis and decided in advance to use a GAM (using mgcv in R). I won't have a lot of data, but I think just enough to model it and just note that there are strong limitations ...
Janice's user avatar
  • 31
0 votes
0 answers
38 views

I have a survival model for a long term mark-recap study that I am trying to apply to several populations. I have been trying to follow Pedersen et al 2019 for this, but I have variables for which I ...
ghaines's user avatar
0 votes
0 answers
14 views

I have trial-level data from 329 participants aged 18–79. Each participant completed 90 trials of an association task. Each trial includes: a within-subject factor Condition (3 levels: A, B, C; 30 ...
Wasabi's user avatar
  • 1
0 votes
0 answers
51 views

I am using GAMMs to model the probability of occurrence of a species, applying logistic regressions with mgcv::bam() to presence-pseudoabsence data. The dataset ...
airC's user avatar
  • 41
5 votes
2 answers
469 views

I am fitting the following GAM model. My response variable is aggregated counts of disease incidence at the county-level. I used log(population) as an offset. If I use it this way, I learned that it ...
Rahul's user avatar
  • 133
0 votes
0 answers
44 views

I fit the following hierarchical gam. My response variable here is Foliar total phosphorus. I have about 20 years of annual data (no gaps) and about 3-5 replicates (collections) per site. I wanted to ...
camila's user avatar
  • 165
4 votes
1 answer
85 views

I have a dataset of brain signals that were recorded simultaneously from several brain regions while participants performed a cognitive task. I have two categorical predictors (recording site, ...
AI ReiGro's user avatar
0 votes
0 answers
33 views

I’m fitting hierarchical generalized additive model (HGAMs) to model temporal trends while accounting for nested structure in the data. The goal here is to specify Site nested within Basin. The model ...
camila's user avatar
  • 165
0 votes
0 answers
50 views

Goal: Annual TP at 4 sites (18 years, ~3 plots per site per year). I fit a hierarchical GAM with a global smooth over Year plus site-specific smooths (factor–smooth interaction). I want to identify ...
camila's user avatar
  • 165
0 votes
0 answers
42 views

I'm in need of some advice on how to account for residual dependence in a fitted GAM that doesn't appear to be driven by temporal structure in the data. In summary, I am working with a long-term ...
Jeremy Hemberger's user avatar
4 votes
1 answer
112 views

I’ve been running Generalized Additive Models (GAMs) to explore temporal trends in my soil phosphorus data. I have 20 years of data at each site. I'm considering either modeling individual GAMs for ...
camila's user avatar
  • 165

15 30 50 per page
1
2 3 4 5
44