logitProbs: Computes logit fraction given a set of coefficients and...

View source: R/logitProbs.R

logitProbsR Documentation

Computes logit fraction given a set of coefficients and alternatives

Description

Returns a data frame of the predicted probabilities (with a confidence) interval) for a set of coefficients (or coefficient draws) and a data frame of alternatives.

Usage

logitProbs(coefs, newdata, obsID = NULL, ci = 0.95)

Arguments

coefs

A matrix of coefficients or draws of coefficients.

newdata

A data frame of a set of alternatives for which to compute logit probabilities. Each row is an alternative.

obsID

The name of the column that identifies each set of alternatives. Defaults to NULL, in which case it assumes the newdata are all one choice scenario.

ci

The sensitivity of the computed confidence interval (CI). Defaults to ci = 0.95, reflecting a 95% CI.


emse-madd-gwu/maddTools documentation built on Oct. 31, 2022, 2:23 p.m.