Learn R Programming

cata (version 0.0.10.9)

pLift: Penalty-Lift Analysis

Description

Penalty-Lift analysis for CATA variables, which is the difference between the average hedonic response when CATA attribute is checked vs. the average hedonic response when CATA attribute is not checked.

Usage

pLift(X, Y)

Value

Penalty lift for the attribute if X is a matrix; otherwise, penalty-lift for each attribute if X is a 3d array.

Arguments

X

either a matrix of CATA data with I consumers (rows) and J products (columns) or an array of CATA data with I consumers, J products, and M attributes.

Y

matrix of hedonic data with I consumers (rows) and J products (columns)

References

Meyners, M., Castura, J.C., & Carr, B.T. (2013). Existing and new approaches for the analysis of CATA data. Food Quality and Preference, 30, 309-319, tools:::Rd_expr_doi("10.1016/j.foodqual.2013.06.010")

Examples

Run this code
data(bread)

# penalty lift, based only on the first 20 consumers

# for the first attribute ("Fresh")
pLift(bread$cata[1:20,,1], bread$liking[1:20, ]) 

# for the first 3  attributes
pLift(bread$cata[1:20,,1:3], bread$liking[1:20, ]) 

Run the code above in your browser using DataLab