Learn R Programming

logitr (version 0.1.0)

getCoefTable: Get the coefficient summary table as a data frame

Description

Returns a data frame of the coefficient summary table of a model estimated using the logitr() function.

Usage

getCoefTable(object)

Arguments

object

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

Value

Returns a data frame of the coefficient summary table of a model estimated using the logitr() function.

Examples

Run this code
# NOT RUN {
library(logitr)

# Run a MNL model in the preference space
mnl_pref <- logitr(
  data = yogurt,
  choiceName = "choice",
  obsIDName = "obsID",
  parNames = c("price", "feat", "dannon", "hiland", "yoplait")
)

# Get the coefficient summary table as a data frame
getCoefTable(mnl_pref)
# }

Run the code above in your browser using DataLab