Learn R Programming

logitr (version 0.1.0)

coef.logitr: Get the model coefficients

Description

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

Usage

# S3 method for 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 this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab