Displaying 1 result from an estimated 1 matches for "callgam".
Did you mean:
callas
2004 Sep 27
2
passing formula arg to mgcv::gam
Hi,
I have a function, callGam, that fits a gam model to a subset of a dataframe. The argument to callGam is a formula, the subset is determined inside the function itself. My na??ve approach generates and error, see below. I guess this is because 'idx' is loocked up in the environment of 'formula', but I am too...