frml.additive.smooth: Formula for GAM without crossterms

Description Usage Arguments Value Author(s) See Also

View source: R/frmladditivesmooth.R

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 ~ s(X_{n+1}) + ... + s(X_m).

Usage

1
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 ~ s(X_{n+1}) + ... + s(X_m)

Author(s)

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

See Also

regrXonS


kpcalg documentation built on May 2, 2019, 12:39 p.m.