---
title: "Discussion on \"Easy MaxDiff in R\" | Hashnode"
description: "Discussion on \"Easy MaxDiff in R\". Try MaxDiff for yourself with 10 lines of R code"
url: "https://hashnode.com/posts/easy-maxdiff-in-r/6526bb60dd50f07ab2f56b50"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Easy MaxDiff in R](https://quantuxblog.com/easy-maxdiff-in-r?utm_source=hashnode&utm_medium=feed)

Try MaxDiff for yourself with 10 lines of R code

Oct 11, 2023 · 20 min read · quantuxblog.com  
Updated May 23, 2025  
Read the article

-   [#quantux](https://hashnode.com/tag/quantux)
-   [#uxresearch](https://hashnode.com/tag/uxresearch)
-   [#r](https://hashnode.com/tag/r)
-   [#maxdiff](https://hashnode.com/tag/maxdiff)

## Written by

[Chris Chapman](https://hashnode.com/@chrischapman)

@chrischapman · Seattle

  
[View profile](https://hashnode.com/@chrischapman)

R, Quant UX, and Marketing Research author. Executive Director, Quant UX Association.

President, Quant UX Association. Previously: Principal UX Researcher @ Google; Amazon Lab 126; Microsoft. Author of "Quantitative User Experience Research" and "\[R | Python\] for Marketing Research and Analytics".

## Responses 1

Markdown supported · ⌘↵ to post

[Amelia](https://hashnode.com/@lilik0i)

[Nov 10, 2023](https://hashnode.com/posts/easy-maxdiff-in-r/6526bb60dd50f07ab2f56b50/comment/654d9aeaf826200bf39217b0)

Hi Chris, this is great! Would love to see a post on doing an anchored MaxDiff in either R or Excel. I've used it to help address the issue of relative importance in a regular MaxDiff :)

[Chris Chapman](https://hashnode.com/@chrischapman)

[Nov 11, 2023](https://hashnode.com/posts/easy-maxdiff-in-r/6526bb60dd50f07ab2f56b50/comment/654d9aeaf826200bf39217b0#reply-654ff7b70701ac13578c431d)

I agree! Anchored MaxDiff is a great option to get at something beyond purely relative importance in MaxDiff.

OTOH, the primary implementation of Anchored MaxDiff relies on hierarchical Bayes estimation, and that is beyond the scope of something like the "easy" counts-based approach taken here. I'll think about it!

(This post is not a recommendation to do counts, but rather was intended to be a demonstration someone might use for learning, before jumping into a real MaxDiff implementation.)
