# Auxilliary for controlling GAM fitting

### Description

Auxiliary function as user interface for 'gam' fitting. Typically only used when calling 'gam' or 'gam.fit'.

### Usage

1 | ```
gam.control(epsilon=1e-07, bf.epsilon = 1e-07, maxit=30, bf.maxit = 30, trace=FALSE,...)
``` |

### Arguments

`epsilon` |
convergence threshold for local scoring iterations |

`bf.epsilon` |
convergence threshold for backfitting iterations |

`maxit` |
maximum number of local scoring iterations |

`bf.maxit` |
maximum number of backfitting iterations |

`trace` |
should iteration details be printed while |

`...` |
Placemark for additional arguments |

### Value

a list is returned, consisting of the five parameters, conveniently packaged up to supply the `control`

argument to `gam`

. The values for `gam.control`

can be supplied directly in a call to `gam`

; these are then filtered through `gam.control`

inside `gam`

.

### References

Hastie, T. J. (1992)
*Generalized additive models.*
Chapter 7 of *Statistical Models in S*
eds J. M. Chambers and T. J. Hastie, Wadsworth \& Brooks/Cole.

### Examples

1 2 | ```
## Not run: gam(formula, family, control = gam.control(bf.maxit=15))
## Not run: gam(formula, family, bf.maxit = 15) # these are equivalent
``` |

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker. Vote for new features on Trello.