Skip to content

Commit b91b75a

Browse files
paldayararslan
andauthored
Apply suggestions from code review
Co-authored-by: Alex Arslan <ararslan@comcast.net>
1 parent 4aee433 commit b91b75a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/likelihoodratiotest.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ function Base.propertynames(lrt::LikelihoodRatioTest, private::Bool=false)
2727
end
2828

2929
"""
30-
StatsAPI.pvalue(lrt::LikelihoodRatioTest)
30+
pvalue(lrt::LikelihoodRatioTest)
3131
32-
Extract the p-value associated with the a likelihood ratio test.
32+
Extract the p-value associated with a likelihood ratio test.
3333
34-
For `LikelihoodRatioTest`s containing more one model comparison, i.e. more than two models,
34+
For `LikelihoodRatioTest`s containing more than one model comparison, i.e. more than two models,
3535
this throws an error because it is unclear which p-value is desired.
3636
3737
To get p-values for multiple tests, use `lrt.pvalues`.
@@ -46,7 +46,7 @@ function StatsAPI.pvalue(lrt::LikelihoodRatioTest)
4646
)
4747
end
4848

49-
return only(lrt.pvalues)
49+
return only(pvalues)
5050
end
5151

5252
function Base.getproperty(lrt::LikelihoodRatioTest, s::Symbol)

0 commit comments

Comments
 (0)