Function to calculate the PW and IW table for conjoint

the_table(model, dataset, evar)

Arguments

model

Tidied model results (broom) output from conjoint passed on by summary.conjoint

dataset

Conjoint data

evar

Explanatory variables used in the conjoint regression

Details

See https://radiant-rstats.github.io/docs/multivariate/conjoint.html for an example in Radiant

See also

conjoint to generate results

summary.conjoint to summarize results

plot.conjoint to plot results

Examples

result <- conjoint(mp3, rvar = "Rating", evar = "Memory:Shape") the_table(tidy(result$model_list[[1]][["model"]]), result$dataset, result$evar)
#> $PW #> Attributes Levels PW #> Memory4GB Memory 4GB 0.000 #> Memory6GB Memory 6GB 7.667 #> Memory8GB Memory 8GB 29.667 #> RadioNo Radio No 0.000 #> RadioYes Radio Yes 6.111 #> SizeLarge Size Large 0.000 #> SizeMedium Size Medium 6.333 #> SizeSmall Size Small 8.500 #> Price$50 Price $50 0.000 #> Price$100 Price $100 -6.833 #> Price$150 Price $150 -33.833 #> ShapeCircular Shape Circular 0.000 #> ShapeRectangular Shape Rectangular -27.833 #> ShapeSquare Shape Square -13.333 #> 15 Base utility ~ 58.111 #> #> $IW #> Attributes IW #> 1 Memory 0.280 #> 2 Radio 0.058 #> 3 Size 0.080 #> 4 Price 0.319 #> 5 Shape 0.263 #> #> $plot_ylim #> Min Max #> Memory 0.00000 34.17167 #> Radio 0.00000 34.17167 #> Size 0.00000 34.17167 #> Price -34.17167 0.00000 #> Shape -34.17167 0.00000 #>