I used to use R for GAM.
I tried to use Stata for GAM but encountered the captioned error message
"problem is too big for gamfit.exe (r2002)".
. gam labyef age,df(3)
[Approximate problem size: 907000 reals. Available:70000 reals.]
problem is too big for c:\ado\gamfit.exe
r(2002);
How can deal with this?
The dataset is:
. sum labyef age
Variable | Obs Mean Std. Dev. Min Max
-------------+--------------------------------------------------------
labyef | 19744 7.438359 3.326544 1 13
age | 19744 24.11066 30.11334 -.0027397 101.9753
Comment