A simple test taken within a week of a stroke may help predict how well people will have recovered up to three years later.