Skip to main content

New answers tagged

1 vote

My data is clustered in space, how can I account for that in a GAMM?

What you are describing is called spatial autocorrelation: Observations physically closer to each other are assumed to be more strongly correlated to each other. A common approach is to either: ...
Frans Rodenburg's user avatar
0 votes

Modelling spatial autocorrelation with GAMs

The quote Trend surface GAM (Hastie and Tibshirani 1990, Wood2006) does not address the problem of spatial autocorrelation, but merely accounts for trends in the data across larger geographical ...
Gavin Simpson's user avatar
1 vote

Issue fitting and plotting GAM with soap film smoother

I have gone through your posted code and have a couple of comments/ideas here: The boundary object that you're supplying does not have the variable f in each ...
Benjamin Hlina's user avatar
1 vote

Issue fitting and plotting GAM with soap film smoother

One thing I notice here is that the model is not predicting all zeros, there is a hotspot around x = 495000. So it is actually working it is just overestimating in that one spot. You might consider ...
Robert Lennox's user avatar
0 votes

Asking for clarification on how to interpret the output of a Generalized Additive Model with interaction terms

Q1 The model formula you used fits the effects of interest. You might consider this alternative ...
Gavin Simpson's user avatar
1 vote

Generalized additive model which interacts with mean of response

Some thoughts, along the lines of @Michael M: If you can assign the fitted prices to a category, you can use that same process, surely (!), to place the observed house prices into the same categories....
Gavin Simpson's user avatar
3 votes
Accepted

Model checking for generalized additive models

The problem with large data sets is that heterogeneities often become visible. With a location-only model, you are fitting a model that also includes constant "effects" for $p$ and $\varphi$,...
Gavin Simpson's user avatar
0 votes

GAM: Smooth and factor interaction

What Not to Do I will start by saying that it is generally not wise to dichotomize a numeric variable. Generally it results in a loss of information and produces bias in your standard errors. It also ...
Shawn Hemelstrand's user avatar

Top 50 recent answers are included