Learn R Programming

MConjoint (version 0.1)

mc.importances: mc.importances

Description

Given a despack with $all.utils filled, calculate the importances

Usage

mc.importances(despack)

Arguments

despack
a design package with $all.utils filled

Value

a despack with all fields unchanged except that $all.imps will be replaced by the list of matrices of calculated utilities

Details

Note that this function will only work if despack$utils is correctly filled. However, there is no requirement that the utilities come from a linear fit. The utilities are not checked against despack$coeffs which may not exist.

Examples

Run this code

data(hire.despack)
data(hire.data)
hire.despack=mc.despack.linear.conjoint(hire.despack,hire.data)
hire.despack=mc.despack.linear.utils(hire.despack)
hire.despack=mc.importances(hire.despack)
hire.despack$all.imps[12]

Run the code above in your browser using DataLab