There was a positive association between a higher number of favorable psychosocial factors in youth and greater ideal cardiovascular health index in adulthood ( = 0.16 ; P < 0.001 ) that persisted after adjustment for age , sex , medication use , and cardiovascular risk factors in childhood ( = 0.15 ; P < 0.001 ) .