Learn R Programming

markets (version 1.1.5)

coef: Market fit coefficients

Description

Returns the coefficients of the fitted market model.

Usage

# S4 method for market_fit
coef(object)

# S4 method for market_fit coefficients(object)

Value

A named vector of estimated model coefficients.

Arguments

object

A fitted model object.

Methods (by class)

  • coef(market_fit): Estimated coefficients.

  • coefficients(market_fit): Estimated coefficients alias.

Examples

Run this code
# \donttest{
# estimate a model using the houses dataset
fit <- diseq_deterministic_adjustment(
  HS | RM | ID | TREND ~
    RM + TREND + W + CSHS + L1RM + L2RM + MONTH |
      RM + TREND + W + L1RM + MA6DSF + MA3DHF + MONTH,
  fair_houses(),
  correlated_shocks = FALSE,
  estimation_options = list(control = list(maxit = 1e+6))
)

# access the estimated coefficients
coef(fit)
coefficients(fit)
# }

Run the code above in your browser using DataLab