Replies: 2 comments
-
I would describe the plots for the first model as showing the partial effect of For the second model, I would say the plots show the same thing as for the first model, except that now the response is not in units of I'm a bit rusty in the terminology but IIRC these are also marginal effects. The plots certainly seem to correspond to the There is such a thing as an average marginal effect, which is the average of the marginal effects (slope) of each data point. |
Beta Was this translation helpful? Give feedback.
-
As for
no, it is not possible to do this with gratia; if you want that, use |
Beta Was this translation helpful? Give feedback.
-
Hi @gavinsimpson,
Not really an issue per se rather just trying to clarify something that I haven't been able to find an answer to. If I run the following model:
My understanding is that the resultant plot provides the marginal effects of
x0
ony
- that is the effect ofx0
averaged over the values ofx1
. Is the same true if I run the following:Except now it is the effect of
x0
averaged over the values ofx1
andz
? Is it possible to setz
to some reference level? In my casez
refers to fishing effort and I am interested in presenting plots that show the estimates ofx0
,x1
, etc. on harvest given 1 unit of effort (i.e.,z = 1
).Thanks for your help, and for all the effort you go to answering GAM-related questions across the web (e.g., StackOverflow). Between that and your blog you've taught me most of what I know!
Beta Was this translation helpful? Give feedback.
All reactions