Learn R Programming

DiceEval (version 1.6.1)

formulaAm: Construction of a formula Y~s(X1)+...+s(Xp)

Description

This function constructs a formula based on splines for additive models.

Usage

formulaAm(X,Y)

Value

an object of class formula.

Arguments

X

a data.frame containing the design of experiments

Y

a vector containing the associated response

Author

D. Dupuy

Examples

Run this code
data(dataIRSN5D)
X <- dataIRSN5D[,1:5]
Y <- dataIRSN5D[,6]
formulaAm(X,Y)

Run the code above in your browser using DataLab