-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added hypothesis tests #16
base: master
Are you sure you want to change the base?
Conversation
src/estimation.jl
Outdated
function z_value(M::Vector{T}, std::Vector{T}) where T | ||
z= M./std | ||
return z | ||
end | ||
|
||
function calc_p_value(z::Vector{T}, num_par::Int) where {T<:Real} | ||
pvalue = zeros(num_par) | ||
for (index, value) in enumerate(z) | ||
if value<=0 | ||
value=-value | ||
end | ||
pvalue[index] = value | ||
end | ||
return 2*ccdf.(Normal(), pvalue) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move to the hypothsis_test.jl file
Codecov Report
@@ Coverage Diff @@
## master #16 +/- ##
=========================================
Coverage ? 87.50%
=========================================
Files ? 3
Lines ? 40
Branches ? 0
=========================================
Hits ? 35
Misses ? 5
Partials ? 0 Continue to review full report at Codecov.
|
added hypothesis tests into the structure with some related unit tests