Skip to content

Commit

Permalink
update text
Browse files Browse the repository at this point in the history
  • Loading branch information
yoninazarathy committed Jul 7, 2020
1 parent 16ae5ad commit 59ebb68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 8_chapter/stepwiseRegression.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function stepReg(df, reVar, pThresh)
pVals = coeftable(model).cols[4][2:end]
println("Variables: ", predVars)
println("P-values = ", round.(pVals,digits = 3))
maximum(pVals) < pThresh && break
pVal, knockout = findmax(pVals)
pVal < pThresh && break
println("\tRemoving the variable ", predVars[knockout],
" with p-value = ", round(pVal,digits=3))
deleteat!(predVars,knockout)
Expand Down

0 comments on commit 59ebb68

Please sign in to comment.