coef.spmodel | R Documentation |
coef extracts fitted model coefficients from
fitted model objects. coefficients
is an alias for it.
## S3 method for class 'splm'
coef(object, type = "fixed", ...)
## S3 method for class 'splm'
coefficients(object, type = "fixed", ...)
## S3 method for class 'spautor'
coef(object, type = "fixed", ...)
## S3 method for class 'spautor'
coefficients(object, type = "fixed", ...)
## S3 method for class 'spglm'
coef(object, type = "fixed", ...)
## S3 method for class 'spglm'
coefficients(object, type = "fixed", ...)
## S3 method for class 'spgautor'
coef(object, type = "fixed", ...)
## S3 method for class 'spgautor'
coefficients(object, type = "fixed", ...)
object |
A fitted model object from |
type |
|
... |
Other arguments. Not used (needed for generic consistency). |
A named vector of coefficients.
spmod <- splm(z ~ water + tarp,
data = caribou,
spcov_type = "exponential", xcoord = x, ycoord = y
)
coef(spmod)
coefficients(spmod)
coef(spmod, type = "spcov")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.