import ols
from statsmodels.stats.anova import anova_lm
# 学历收入数据
ep_dic = {
'学历':['A', 'A',..., 11, 14, 13, 14, 15, 17, 15, 18, 11, 25]
}
df = pd.DataFrame(ep_dic)
formula = '收入~C(学历)'
model = ols...import ols
from statsmodels.stats.anova import anova_lm
# 学历收入数据
ep_dic = {
'学历':['A', 'A',...11, 14, 13, 14, 15, 17, 15, 18, 11, 25]
}
df = pd.DataFrame(ep_dic)
formula = '收入~ 学历 + 性别'
model = ols...import ols
from statsmodels.stats.anova import anova_lm
dic = {
'x':[0.424155712,0.898346186,0.521924734,0.841409445,0.211007655,0.564409196,0.264802098,0.061063781,0.555238843,0.871449053,0.255149871,0.044518802,0.424155712,0.898346186,0.521924734,0.841409445,0.211007655,0.564409196,0.264802098,0.947742641