Effects of partonic interactions in heavy ion collisions at RHIC are studied in a multiphase transport model (AMPT) that includes both initial partonic and final hadronic interactions. It is found that a large parton scattering cross section is needed to understand the measured elliptic flow of pions and two-pion correlation function.