Description Usage Arguments Value Author(s) Examples

The main modelling function.

1 2 |

`ggd` |
The GenoGAMDataSet object to be fitted |

`lambda` |
The penalization parameter. If NULL (default) estimated by cross validation. So far only one parameter for all splines is supported. |

`theta` |
The global overdispersion parameter. If NULL (default) estimated by cross validation. |

`family` |
The distribution to be used. So far only Negative-Binomial (nb) is supported. |

`eps` |
The factor for additional first-order regularization. This should be zero (default) in most cases. It can be useful for sparse data with many zero-counts regions or very low coverage. In this cases it is advised to use a small factor like 0.01, which would penalize those regions but not the ones with higher coverage. See Wood S., Generalized Additive Models (2006) for more. |

`kfolds` |
The number of folds for cross validation |

`intervalSize` |
The size of the hold-out intervals in cross validation. If replicates are present, this can easily be increased to twice the fragment size to capture more of the local correlation. If no replicates are present, keep the number low to avoid heavy interpolation (default). |

`regions` |
How many regions should be used in cross validation? The number is an upper limit. It is usually corrected down, such that the total number of models computed during cross validation does not exceed the total number of models to compute for the entire genome. This is usually the case for small organisms such as yeast. |

`order` |
The order of the B-spline basis, which is order + 2, where 0 is the lowest order. Thus order = 2 is equivalent to cubic order (= 3). |

`m` |
The order of penalization. Thus m = 2 penalizes the second differences. |

The fit as a GenoGAM object

Georg Stricker georg.stricker@in.tum.de

1 2 | ```
ggd <- makeTestGenoGAMDataSet(sim = TRUE)
res <- genogam(ggd, lambda = 266.8368, theta = 2.415738)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.