Description Usage Arguments Value Examples
Fit a generalized additive model(GAM) for data to capture the relationship between the relationship between the X and each column of Y.
1 |
X |
a dataframe with |
Y |
a dataframe with |
LogY |
logical. If |
k |
the dimension of the basis used to represent the smooth term
when |
parallel |
logical. If |
num.cores |
the specified amount of parallel processes to be used if parallel = TRUE. |
gam.fun
returns a list with F
generalized additive models
for each response variable.
1 2 3 | X <- as.data.frame(state.x77[, "Murder"])
Y <- as.data.frame(state.x77[, c("Population", "Illiteracy", "Income", "Frost")])
gam.fit <- gam.fun(X, Y, LogY = FALSE, k = 10)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.