Description Usage Arguments Value Author(s) See Also
View source: R/frmladditivesmooth.R
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).
1 | frml.additive.smooth(target.ind, pred.inds, var.str = "x")
|
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" |
formula.additive.smooth() returns a formula X_i ~ s(X_{n+1}) + ... + s(X_m)
Petras Verbyla (petras.verbyla@mrc-bsu.cam.ac.uk)
regrXonS
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.