Running examples in ‘mpower-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: sim_curve
> ### Title: Power curve using Monte Carlo simulation
> ### Aliases: sim_curve
> 
> ### ** Examples
> 
> data("nhanes1518")
> chems <- c("URXCNP", "URXCOP", "URXECP", "URXHIBP", "URXMBP", "URXMC1",
+ "URXMCOH", "URXMEP","URXMHBP", "URXMHH", "URXMHNC", "URXMHP", "URXMIB",
+ "URXMNP", "URXMOH", "URXMZP")
> chems_mod <- mpower::MixtureModel(nhanes1518[, chems], method = "resampling")
> bmi_mod <- mpower::OutcomeModel(f = "0.2*URXCNP + 0.15*URXECP +
+ 0.1*URXCOP*URXECP", family = "binomial")
> logit_mod <- mpower::InferenceModel(model = "glm", family = "binomial")
Estimating the power of conditional t-test on each regression coefficient.
> logit_out <- mpower::sim_curve(xmod=chems_mod, ymod=bmi_mod, imod=logit_mod,
+ s=20, n=c(500, 1000), cores=2, snr_iter=1000)
Simulation for n = 500 and the 1 th outcome model

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |====                                                                  |   5%
  |                                                                            
  |=======                                                               |  10%
  |                                                                            
  |==========                                                            |  15%
  |                                                                            
  |==============                                                        |  20%
  |                                                                            
  |==================                                                    |  25%
  |                                                                            
  |=====================                                                 |  30%
  |                                                                            
  |========================                                              |  35%
  |                                                                            
  |============================                                          |  40%
  |                                                                            
  |================================                                      |  45%
  |                                                                            
  |===================================                                   |  50%
  |                                                                            
  |======================================                                |  55%
  |                                                                            
  |==========================================                            |  60%
  |                                                                            
  |==============================================                        |  65%
  |                                                                            
  |=================================================                     |  70%
  |                                                                            
  |====================================================                  |  75%
  |                                                                            
  |========================================================              |  80%
  |                                                                            
  |============================================================          |  85%
  |                                                                            
  |===============================================================       |  90%
  |                                                                            
  |==================================================================    |  95%
  |                                                                            
  |======================================================================| 100%
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Simulation for n = 1000 and the 1 th outcome model

  |                                                                            
  |                                                                      |   0%
  |                                                                            
  |====                                                                  |   5%
  |                                                                            
  |=======                                                               |  10%
  |                                                                            
  |==========                                                            |  15%
  |                                                                            
  |==============                                                        |  20%
  |                                                                            
  |==================                                                    |  25%
  |                                                                            
  |=====================                                                 |  30%
  |                                                                            
  |========================                                              |  35%
  |                                                                            
  |============================                                          |  40%
  |                                                                            
  |================================                                      |  45%
  |                                                                            
  |===================================                                   |  50%
  |                                                                            
  |======================================                                |  55%
  |                                                                            
  |==========================================                            |  60%
  |                                                                            
  |==============================================                        |  65%
  |                                                                            
  |=================================================                     |  70%
  |                                                                            
  |====================================================                  |  75%
  |                                                                            
  |========================================================              |  80%
  |                                                                            
  |============================================================          |  85%
  |                                                                            
  |===============================================================       |  90%
  |                                                                            
  |==================================================================    |  95%
  |                                                                            
  |======================================================================| 100%
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
Warning in stats::rbinom(length(mu[idx]), size = 1, prob = mu[idx]) :
  NAs produced
> logit_df <- summary(logit_out, crit="pval", thres=0.05, how="lesser")

	*** POWER CURVE ANALYSIS SUMMARY ***
Number of Monte Carlo simulations: 20
Number of observations in each simulation: 500 1000
Data generating process estimated SNR (for each outcome model): -1
Inference model: glm
Significance criterion: pval
Significance threshold: 0.05Error in loadNamespace(x) : there is no package called ‘knitr’
Calls: summary ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted