现在我正在尝试使用statsmodels.formationa.api的quantreg,通过像在https://www.statology.org/quantile-regression-in-python/中那样做smf.quantreg('<independant values> ~ <dependant values>', df).fit(q=0.9)来放入公式和数据帧但是我找不到如何以一种方式构造公式来获取多个独立值,我尝试了使用'xValue1,xValue2 ~ yValue‘的结构,但是这导致我得到行不匹配错误,这让我认为statsmodel假设我的xValues是行而不是列。
发布于 2021-01-22 06:15:11
这应该是可行的
smf.quantreg('yValue ~ xValue1 + xValue2 + xValue3', df).fit(q=0.9)https://stackoverflow.com/questions/65835057
复制相似问题