[英]Similar python function of R Vif Function
lately I've been working with both R
and Python
for Analytics and Statics studies, so I was wondering what is the similar python function of R Vif
Function.
請記住, Vif
function 可以幫助我們找到...
預測變量的 VIF 用於衡量使用其他預測變量從線性回歸預測它的難易程度。
謝謝你,祝你有美好的一天!!
獲取 python 中的 vif 值:
from statsmodels.stats.outliers_influence import variance_inflation_factor
variables = lm.model.exog
vif = [variance_inflation_factor(variables, i) for i in
range(variables.shape[1])]
vif
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.