GAMart: GAM Artificial Data Set

View source: R/GAMart.R

GAMartR Documentation

GAM Artificial Data Set

Description

This function creates artificial GAM-type data.frames. The function is mainly used for testing purposes.

Usage

GAMart(n = 500, sd = 0.1, seed = FALSE,
  ti = c("none", "vcm", "main", "both"))

Arguments

n

The number of observations.

sd

Standard deviation of the normal errors.

seed

Sets the seed to 111.

ti

For tensor product interaction term, the type of interaction.

Examples

d <- GAMart()
head(d)

## Not run: b <- bamlss(num ~ s(x1) + s(x2) + s(x3) + te(lon,lat), data = d)
plot(b)

## End(Not run)

bamlss documentation built on Nov. 2, 2023, 5:31 p.m.