Skip to content

Commit

Permalink
Remove ties-breaking for plotConfidence
Browse files Browse the repository at this point in the history
  • Loading branch information
ppernot committed Apr 24, 2023
1 parent 26c4379 commit 51fc9d7
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 4 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export(sdZCI)
export(setgPars)
export(skew)
export(skewgm)
export(testCovIntProb)
export(trendCorr)
export(varZCI)
export(varvar)
Expand Down
8 changes: 4 additions & 4 deletions R/plotConfidence.R
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ plotConfidence = function(
Normp4 = function(N, df = 4)
normalp::rnormp(N, p = df) / sqrt(df^(2/df)*gamma(3/df)/gamma(1/df))

# Reorder data (use abs(E) to resolve ties)
io = order(uE, abs(E), decreasing = TRUE)
uE = uE[io]
E = E[io]
# Reorder data
io = order(uE, decreasing = TRUE)
uE = uE[io]
E = E[io]
if(oracle) {
# Perfect ordered set for oracle
io = order(abs(E), decreasing = TRUE)
Expand Down
3 changes: 3 additions & 0 deletions man/plotLCP.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/plotLZISD.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/plotLZV.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/plotRelDiag.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions man/testCovIntProb.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 51fc9d7

Please sign in to comment.