I have the following variables and if they were in wide format I would calculate something like
lm(happiness ~ personality_trait*condition)
B