# What's the appropriate way to calculate an effect size when there is an interaction?

I have a regression model with two significant main effects and a significant interaction. I'd like to calculate an effect size for one of the main effects.

I'm using the package compute.es in R. I'm not sure whether I should use the empirical means and standard deviations or the t-value from the regression model to calculate the effect size.