powered by
modgam
Based 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='')
The function returns the formula for the model.
a user specified formula expression (for modgam).
a well structured data frame with the two geolocation parameters in the first and second columns. data is ingnored if formula is specified.
data
formula
use m="adjusted" to specify a model including adjusted confounders. Use m="unadjusted" to specify a unadjusted model.
m="adjusted"
m="unadjusted"
surv=TRUE specifies a model for censored surival dataset.
surv=TRUE
smoothing parameters used for smoothing functions (see details in modgam) if smooth=TRUE.
smooth=TRUE
smooth=TRUE specifies a smooth term in the model.
the name for offset.
Lu Bai
Send bug reports to sbartell@uci.edu.
modgam, .
# \donttest{ data(CAdata) toformula(data=CAdata, surv=TRUE) # }
Run the code above in your browser using DataLab