Skip to content

Commit

Permalink
Update RIT.R
Browse files Browse the repository at this point in the history
  • Loading branch information
ericstrobl committed Dec 10, 2018
1 parent c2ad6b0 commit e707016
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/RIT.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ RIT <- function(x,y,approx="lpd4",seed=NULL){
#approximate null distributions

if (approx == "perm"){
nperm =100;
nperm =1000;

Stas = c();
for (ps in 1:nperm){
Expand Down Expand Up @@ -89,7 +89,7 @@ RIT <- function(x,y,approx="lpd4",seed=NULL){
} else if (approx == "lpd4"){
eig_d_values=eig_d$values;
p=try(1-lpb4(eig_d_values,Sta), silent=TRUE);
if (!is.numeric(p)){
if (!is.numeric(p) | is.nan(p)){
p=1-hbe(eig_d$values,Sta);
}
}
Expand Down

0 comments on commit e707016

Please sign in to comment.