search for: silly2

Displaying 1 result from an estimated 1 matches for "silly2".

Did you mean: silly
2008 Aug 19
0
environment problems
...elow calls gam() (from package gam) with different values of the span parameter for lo(), which is used inside the formula of gam. The values for span are stored in a vector that resides in the function silly(), and that lo(), for some reason, needs to see. A hack to get around this is provided in silly2(), where the current value for span is forcefully assigned to a variable in the "top" environment, that is always visible (I believe?) Of course, this is not good programming practice (to say the least). I'd very much appreciate it if somebody could help me find a better way to make...