frml.additive.smooth {kpcalg}R Documentation

Formula for GAM without crossterms

Description

Creates a formula for gam to be used in regrXonS. For data X=(X_1,...X_n,X_{n+1},...,X_m), variable to be regressed X_{i}, i=1...n and variables to regress on S={X_{n+1},...,X_m} creates formula X_i \sim s(X_{n+1}) + ... + s(X_m).

Usage

frml.additive.smooth(target.ind, pred.inds, var.str = "x")

Arguments

target.ind

integer, number for the variable to be regressed

pred.inds

integer(s), number(s) for the variable(s) on which we regress

var.str

name of variables used to create formula, default is "x"

Value

formula.additive.smooth() returns a formula X_i \sim s(X_{n+1}) + ... + s(X_m)

Author(s)

Petras Verbyla (petras.verbyla@mrc-bsu.cam.ac.uk)

See Also

regrXonS


[Package kpcalg version 1.0.1 Index]