cupi: This function computes for client i the utility of each...

Description Usage Arguments Value Examples

View source: R/ms.prediction.pw.R

Description

This function computes for client i the utility of each market profile (given rivals' profiles and new profiles ) for consumer i. The data frame mp has the data of existing profiles for which we are going to compute the market shares. It is a table of market product profiles (rows) by attributes (columns), wp is a data frame of client i (rows) by part worths (colums), design.l is a list with conjoint desing.

Usage

1
cupi(pw, mp, n.attributes)

Arguments

pw

a data frame with all clients' partworths

mp

a data frame with the description of competitors' existing product profiles

n.attributes

the number attributs of conjoint design

Value

upi a matrix with the prediction of utilities for client i

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(MDSConjointData)
names(MDSConjointData)
osc<-MDSConjointData$osc
#this function is called by uop().
osc.conjoint <- conjoint.estimation(osc$ratings, osc$bundles, osc$design)
names(osc.conjoint)
# [1] "summary"     "fit"         "part.worths"  "prediction"
#head(osc.conjoint$summary)
head(osc.conjoint$fit)
head(osc.conjoint$part.worths)
head(osc.conjoint$prediction)
#osc.cupi <-cupi(osc$market.profiles, osc.conjoint$part.worths[1,], osc$design)
#head(osc.cupi)

jlopezsi/MDSConjoint documentation built on May 17, 2017, 11:25 p.m.