Suppose that a researcher does a study to see how level of anxiety (A1 = low, A2 = medium, A3 = high) is used to predict exam performance (Y).
Set up dummy coded dummy variables to contrast each of the other groups to Group 2, medium Anxiety; run a regression to predict exam performance (Y) from these dummy coded dummy variables.