Skip to contents

Return formula used by a fitted model object.

Usage

# S3 method for spmod
formula(x, ...)

Arguments

x

A fitted model object from splm() or spautor().

...

Other arguments. Not used (needed for generic consistency).

Value

The formula used by a fitted model object.

Examples

spmod <- splm(z ~ water + tarp,
  data = caribou,
  spcov_type = "exponential", xcoord = x, ycoord = y
)
formula(spmod)
#> z ~ water + tarp
#> <environment: 0x0000000008387298>