Skip to content

Commit

Permalink
Merge branch 'VanAndelInstitute:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
ttriche authored Mar 21, 2023
2 parents f3b4ad2 + f2a2570 commit 2b256e1
Show file tree
Hide file tree
Showing 2 changed files with 325 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
323 changes: 323 additions & 0 deletions SimulationStudy20230220.html

Large diffs are not rendered by default.

0 comments on commit 2b256e1

Please sign in to comment.