Skip to content

Commit

Permalink
.sum2t alternative formulation
Browse files Browse the repository at this point in the history
  • Loading branch information
livioivil committed Nov 22, 2024
1 parent c19f829 commit 051b511
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/utiliy_score_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ get_std_dev_score <- function(fit,x2){
# if(any(is.na(stat))) browser()
stat
}

# .sum2t <- function(Tvector, sumY2, n){
# dev_resid=(sumY2-(Tvector^2/n))
# Tvector/sqrt(dev_resid/(n-1)*n)
# }
#### compute p-value
.t2p <- function(pvls){
mean(as.vector(pvls)>=pvls[1])
Expand Down

0 comments on commit 051b511

Please sign in to comment.