Learn R Programming

spmodel (version 0.8.0)

glance.spmodel: Glance at a fitted model object

Description

Returns a row of model summaries from a fitted model object. Glance returns the same number of columns for all models and estimation methods. If a particular summary is undefined for a model or estimation method (e.g., likelihood statistics for estimation methods "sv-wls" or "sv-cl" of splm() objects), NA is returned for that summary.

Usage

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

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

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

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

Value

A single-row tibble with columns

  • n The sample size.

  • p The number of fixed effects.

  • npar The number of estimated covariance parameters.

  • value The optimized value of the fitting function.

  • AIC The AIC.

  • AICc The AICc.

  • BIC The BIC.

  • logLik The log-likelihood.

  • deviance The deviance.

  • pseudo.r.squared The pseudo r-squared.

Arguments

x

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

...

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

See Also

stats::AIC() AICc() stats::BIC() logLik.spmodel() deviance.spmodel() pseudoR2() tidy.spmodel() augment.spmodel()

Examples

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

Run the code above in your browser using DataLab