Rdocumentation
powered by
Learn R Programming
kpcalg (version 1.0.1)
frml.full.smooth: Formula for GAM with 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 ~ s(X_{n+1},...,X_m$.
Usage
frml.full.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.full.smooth() returns a formula $X_i ~ s(X_{n+1},...,X_m)$
See Also
regrXonS