Hypercortisolism seems to be the most predictable cause of secondary osteoporosis using the A, M, and P indices, with the M index being statistically significantly associated with other causes like acromegaly and treatment with aromatase inhibitors. This evidence concerns the gene CYP19A1 and adrenal gland hyperfunction.