R/formula.R
R/formula_glm.R
formula.spmodel.Rd
Return formula used by a fitted model object.
# S3 method for splm formula(x, ...) # S3 method for spautor formula(x, ...) # S3 method for spglm formula(x, ...) # S3 method for spgautor formula(x, ...)
A fitted model object from splm(), spautor(), spglm(), or spgautor().
splm()
spautor()
spglm()
spgautor()
Other arguments. Not used (needed for generic consistency).
The formula used by a fitted model object.
spmod <- splm(z ~ water + tarp, data = caribou, spcov_type = "exponential", xcoord = x, ycoord = y ) formula(spmod) #> z ~ water + tarp #> <environment: 0x000001fb1bc49688>