derive_var_analysis_ratio function

Derive Ratio Variable