Skip to content

Commit

Permalink
Using <<- operator
Browse files Browse the repository at this point in the history
  • Loading branch information
SeewooLi committed May 29, 2024
1 parent 42599ce commit 404f287
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/non_exporting_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -984,13 +984,13 @@ WLE_theta <- function(item, data, type){
thres <- abs(diff)
}
}
mle <- append(mle, th)
se <- append(se, sqrt(-1/l1l2[2]))
mle <<- append(mle, th)
se <<- append(se, sqrt(-1/l1l2[2]))
}, error = function(e){
message("\n","WLE failed to converge for the entry ", i,"\n",sep="",appendLF=FALSE)

mle <- append(mle, NA)
se <- append(se, NA)
mle <<- append(mle, NA)
se <<- append(se, NA)
}
)
}
Expand Down

0 comments on commit 404f287

Please sign in to comment.