Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

coef.logitr

Get the model coefficients


Description

Returns the coefficients of an estimated model of the 'logitr' class.

Usage

## S3 method for class 'logitr'
coef(object, ...)

Arguments

object

The output of a model estimated using the logitr() function.

...

other arguments

Value

A vector of the coefficients from a model estimated using the logitr() function.

Examples

# Run a MNL model in the Preference Space:
data(yogurt)

mnl_pref <- logitr(
  data = yogurt,
  choiceName = "choice",
  obsIDName = "obsID",
  parNames = c("price", "feat", "dannon", "hiland", "yoplait")
)

# Get the model coefficients:
coef(mnl_pref)

logitr

Logit Models w/Preference & WTP Space Utility Parameterizations

v0.1.0
MIT + file LICENSE
Authors
John Helveston [aut, cre, cph] (<https://orcid.org/0000-0002-2657-9191>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.