Skip to contents

Power analysis

Estimate power across multiple simulation parameters

power()
Simulated power
add_power_ci()
Add confidence intervals for power estimates
add_power_pi()
Add Bayesian posterior predictive intervals for power estimates
eval_power_ci()
Evaluate confidence intervals for power estimates
eval_power_pi()
Evaluate Bayesian posterior predictive intervals for power estimates

Plot

Automatic plotting method for power objects

plot(<depower>)
Plot power objects

Simulate

Simulate data

sim_log_lognormal()
Simulate log-transformed lognormal data
sim_nb()
Simulate NB data
sim_bnb()
Simulate BNB data

Hypothesis testing

Calculate test statistics for simulated data

t_test_welch()
Welch's t-Test
t_test_paired()
Paired and one-sample t-Tests
wald_test_nb()
Wald test for NB ratio of means
wald_test_bnb()
Wald test for BNB ratio of means
lrt_nb()
Likelihood ratio test for NB ratio of means
lrt_bnb()
Likelihood ratio test for BNB ratio of means
asymptotic() simulated()
Test statistic distribution under the null
glm_nb()
GLM for NB ratio of means
glmm_bnb()
GLMM for BNB ratio of means
glmm_poisson()
GLMM for Poisson ratio of means

MLE

Maximum likelihood estimation

Log-likelihood

Calculate the negative log-likelihood

nll_nb_null() nll_nb_alt()
Negative log-likelihood for NB
nll_bnb_null() nll_bnb_alt()
Negative log-likelihood for BNB