Learn R Programming

logitr (version 0.2.0)

summary.logitr: View summary of estimated model

Description

Prints a summary of a model estimated using the logitr() function

Usage

# S3 method for logitr
summary(object, ...)

Arguments

object

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

...

other arguments

Value

No return value; prints a summary of the model results to the console.

Examples

Run this code
# NOT RUN {
# Run a MNL model in the Preference Space with a multistart:
data(yogurt)

mnl_pref <- logitr(
  data = yogurt,
  choiceName = "choice",
  obsIDName = "obsID",
  parNames = c("price", "feat", "dannon", "hiland", "yoplait"),
  options = list(
    numMultiStarts = 5,
    keepAllRuns = TRUE
  )
)

# View a summary of the model:
summary(mnl_pref)
# }

Run the code above in your browser using DataLab