Study finds similar benefits learning online and going to campus