1
vote
0answers
50 views

What might be wrong when my gamm fit is perfectly linear despite my spline term?

I'm using Wood's gamm4 R package and I run: ...
4
votes
1answer
369 views

Interactions between non-linear predictors

I have data on 70,000 students, nested in 120 schools. I'm starting with fixed effects for the schools, but at some point I might start letting intercepts and slopes vary. Some key predictors ...