An implementation of the generalized power analysis for the local average treatment effect (LATE), proposed by Bansak (2020) <doi:10.1214/19-STS732>. Power analysis is in the context of estimating the LATE (also known as the complier average causal effect, or CACE), with calculations based on a test of the null hypothesis that the LATE equals 0 with a two-sided alternative. The method uses standardized effect sizes to place a conservative bound on the power under minimal assumptions. Package allows users to recover power, sample size requirements, or minimum detectable effect sizes. Package also allows users to work with absolute effects rather than effect sizes, to specify an additional assumption to narrow the bounds, and to incorporate covariate adjustment.

An implementation of maximum likelihood estimators
    for a variety of heavy tailed distributions, including both the
    discrete and continuous power law distributions. Additionally, a
    goodness-of-fit based approach is used to estimate the lower cut-off
    for the scaling region.

An implementation of the sample size computation method for network
    models proposed by Constantin et al. (2021) <doi:10.31234/osf.io/j5v7u>.
    The implementation takes the form of a three-step recursive algorithm
    designed to find an optimal sample size given a model specification and a
    performance measure of interest. It starts with a Monte Carlo simulation
    step for computing the performance measure and a statistic at various sample
    sizes selected from an initial sample size range. It continues with a
    monotone curve-fitting step for interpolating the statistic across the entire
    sample size range. The final step employs stratified bootstrapping to quantify
    the uncertainty around the fitted curve.

Functions to 
        calculate power and sample size for testing
        (1) mediation effects; 
        (2) the slope in a simple linear regression; 
        (3) odds ratio in a simple logistic regression;
        (4) mean change for longitudinal study with 2 time points;
        (5) interaction effect in 2-way ANOVA; and
        (6) the slope in a simple Poisson regression.