toformula {MapGAM} | R Documentation |
Build a Formula Based on Data for modgam
Function
Description
Based on the arguments in modgam
, build a formula used for model fitting.
Usage
toformula(formula, data,m="adjusted",surv = FALSE, span=0.5,degree=2,
smooth = TRUE,offset='')
Arguments
formula |
a user specified formula expression (for |
data |
a well structured data frame with the two geolocation parameters in the first and second columns. |
m |
use |
surv |
|
span , degree |
smoothing parameters used for smoothing functions (see details in |
smooth |
|
offset |
the name for offset. |
Value
The function returns the formula for the model.
Author(s)
Lu Bai
Send bug reports to sbartell@uci.edu.
See Also
modgam
, .
Examples
data(CAdata)
toformula(data=CAdata, surv=TRUE)
[Package MapGAM version 1.3 Index]