toformula | R Documentation |
modgam
FunctionBased on the arguments in modgam
, build a formula used for model fitting.
toformula(formula, data,m="adjusted",surv = FALSE, span=0.5,degree=2,
smooth = TRUE,offset='')
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. |
The function returns the formula for the model.
Lu Bai
Send bug reports to sbartell@uci.edu.
modgam
, .
data(CAdata)
toformula(data=CAdata, surv=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.