Learn R Programming

spmodel (version 0.8.0)

formula.spmodel: Model formulae

Description

Return formula used by a fitted model object.

Usage

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

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

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

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

Value

The formula used by a fitted model object.

Arguments

x

A fitted model object from splm(), spautor(), spglm(), or spgautor().

...

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

Examples

Run this code
spmod <- splm(z ~ water + tarp,
  data = caribou,
  spcov_type = "exponential", xcoord = x, ycoord = y
)
formula(spmod)

Run the code above in your browser using DataLab