We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d771ab commit 0f41de2Copy full SHA for 0f41de2
visualpython/js/m_stats/Regression.js
@@ -707,10 +707,8 @@ define([
707
code.appendLine("from IPython.display import display, Markdown");
708
code.appendLine("from scipy import stats");
709
code.appendLine("import statsmodels.api as sm");
710
- if (testType === 'multiple') {
711
- if (['stepwise', 'backward', 'forward'].includes(method)) {
712
- code.appendLine("_predict = _result.predict(sm.add_constant(vp_df[_model.exog_names[1:]]))");
713
- }
+ if (testType === 'multiple' && ['stepwise', 'backward', 'forward'].includes(method)) {
+ code.appendLine("_predict = _result.predict(sm.add_constant(vp_df[_model.exog_names[1:]]))");
714
} else {
715
code.appendLine("_predict = _result.predict(vp_df)");
716
}
0 commit comments