This answer explains how the experiment was set up and some of the results of the experiment. My question is why did they have Ham do anything? I understand sending a chimp prior to human flight (better to have a chimp fall to some unknown factor in the harsh conditions of space than a human), but why wouldn't Ham just be a passive passenger?
This was to test the change in the chimp's reaction time from the ground to space. It was a human analog experiment--i.e. the results of the test were used to make estimations of how human reaction time would change in spaceflight.
Ham's average reaction time on the ground was .8 second, and during flight he averaged .82 second. The assessment was that he performed well.