我想在 python 线性模型中做部分 F 测试,
有什么命令我可以做到吗?
import numpy as np
import pandas as pd
import linearmodels.iv as iv
f = 'ln_assaults ~ 1 + [attend_v + attend_m + attend_n ~ pr_attend_v + pr_attend_m + pr_attend_n] + years + mons + holidays + weather'
reg = iv.IV2SLS.from_formula(formula=f, data=movie)
result = reg.fit(cov_type='robust', debiased=True)
hypo = ['attend_v = attend_m']
result.f_test(hypo)
AttributeError: 'IVResults' object has no attribute 'f_test'