According the study, many states have poor retirement environments.