Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
richardkwo committed Jun 14, 2018
1 parent f536ed0 commit cd510b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/conditionalInvTests.jl
Expand Up @@ -149,7 +149,7 @@ function conditional_inv_test_logistic(df::DataFrame, target::Symbol, S::Vector{
else
p_hat = predict(fit0)
end
res = df[target] - p_hat # TODO: better test
res = (df[target] - p_hat) ./ sqrt.(p_hat .* (1 - p_hat))
p_values[i] = sukhatme_fisher_test(res[env.==i], res[env.!=i])
else
error("method undefined")
Expand Down

0 comments on commit cd510b7

Please sign in to comment.