Aan de slagGa gratis aan de slag

Predicting shares for chocolates

A store wants to carry a line of chocolates that is in a data frame I've already loaded called choc_line. I've already effects coded it and stored the code model matrix in choc_line_coded. In this stepped exercise, you will fill in the key elements of the code for computing shares for choc_line from the hierarchical model choc_m8.

Deze oefening maakt deel uit van de cursus

Choice Modeling for Marketing in R

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Extract the mean coefficients and assign to coef_means
coef_means <- ___
Code bewerken en uitvoeren