How to compute Q2 value of a QSAR model?

Hi, is there any way to compute Q2 value of a QSAR model through internal cross-validation procedure (Leave-one-out or anything similar)? Subhendu