Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gam.data

Simulated dataset for gam


Description

A simple simulated dataset, used to test out the gam functions

Usage

data(gam.data)
data(gam.newdata)

Format

A data frame with 100 observations on the following 6 variables.

x

a numeric vector - predictor

y

a numeric vector - the response

z

a numeric vector - noise predictor

f

a numeric vector - true function

probf

a numeric vector - probability function

ybin

a numeric vector - binary response

Details

This dataset is artificial, and is used to test out some of the features of gam.

Examples

data(gam.data)
gam(y ~ s(x) + z, data=gam.data)

gam

Generalized Additive Models

v1.20
GPL-2
Authors
Trevor Hastie
Initial release
2020-6-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.