Analysis of joint intra- and interspecific trait evolution