Paleontologists compared the bones and joints of birds to dinosaurs to find links in new Yale University study