gam.data: Simulated dataset for gam

Description Usage Format Details Examples

Description

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

Usage

1
2

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

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

Example output

Loading required package: splines
Loading required package: foreach
Loaded gam 1.16

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

Degrees of Freedom: 99 total; 93.99988 Residual
Residual Deviance: 7.90768 

gam documentation built on July 8, 2020, 7:24 p.m.

Related to gam.data in gam...