Skip to content

Commit

Permalink
Update est_pow.R
Browse files Browse the repository at this point in the history
  • Loading branch information
madajz authored Mar 20, 2023
1 parent dfcf190 commit f2a2570
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/est_pow.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ est_pow = function(n,alpha,nsim,dist,params,tests){

if("mclust" %in% tests){
pwr.df = rbind(pwr.df,data.frame(N = n, Test = "Mclust",
power = sum(sapply(n.dfs, function(s) I(mclust::mclustBootstrapLRT(as.data.frame(s),modelName="V",verbose=F,maxG=1)$p.value<alpha)))/nsim,
FP = sum(sapply(a.dfs, function(s) I(mclust::mclustBootstrapLRT(as.data.frame(s),modelName="V",verbose=F,maxG=1)$p.value<alpha)))/nsim ))
power = sum(sapply(n.dfs, function(s) I(mclust::mclustBootstrapLRT(as.data.frame(s),modelName="E",verbose=F,maxG=1)$p.value<alpha)))/nsim,
FP = sum(sapply(a.dfs, function(s) I(mclust::mclustBootstrapLRT(as.data.frame(s),modelName="E",verbose=F,maxG=1)$p.value<alpha)))/nsim ))
}

## sigclust is giving me issues so I've dropped it for now.
Expand Down

0 comments on commit f2a2570

Please sign in to comment.