Skip to main content
BMC Medical Research Methodology logoLink to BMC Medical Research Methodology
. 2026 Jul 21;26:221. doi: 10.1186/s12874-026-02940-y

Robust power and sample size calculations in quasi-likelihood models: methods and practice

Shijie Yuan 1,✉, Amy Cochran 2, Paul Rathouz 3
PMCID: PMC13670577  PMID: 42481930

Abstract

Background

Accurate power and sample size calculations are essential in study planning, yet they are often difficult to carry out for quasi-likelihood (QL) models. Traditional power and sample size (PSS) approaches often rely on restrictive distributional assumptions, limiting their applicability when responses have non-standard distributions, variance functions are misspecified, or when covariates exhibit complex dependence structures.

Methods

We examine whether two effect size measures—2 Standard Deviations in the Linear Predictor (2SLiP) and Pseudo-Partial Inline graphic (P2R2)—originally developed for Wald tests involving generalized linear models, are effective at power and sample size calculations in the QL framework. Through extensive simulations across diverse outcome types, link functions, and variance structures, we assess their performance under Wald tests and explore whether they remain useful for score tests. To illustrate practical utility, we apply these effect size measures to survey data on frontline health care workers to quantify the association between perceived personal protective equipment (PPE) adequacy and burnout risk during the COVID-19 pandemic, adjusting for covariates.

Results

We show that the two generalized linear model (GLM)-based effect sizes are fundamentally moment-based objects, and therefore extend directly to QL models. Across all simulation settings, both measures remained accurate, with sample size and power estimates within 3% and 2% of the target, respectively. In the case study, the estimated effect sizes for perceived PPE adequacy (2SLiP = 0.096 and P2R2 = 0.020) correspond to small but meaningful associations with burnout risk after adjustment for demographic and occupational covariates; both yielded accurate recommendations for sample size.

Conclusions

Both 2SLiP and P2R2 offer robust alternatives for power and sample size calculation in QL settings. By requiring minimal distributional assumptions, these measures enhance the flexibility and reliability of power and sample size calculations for realistic study designs commonly encountered in medical and public health research.

Supplementary Information

The online version contains supplementary material available at https://doi.org/10.1186/s12874-026-02940-y.

Keywords: 2SLiP, Effect size, Generalized linear models, P2R2, Quasi-likelihood models, Wald test, Score test

Introduction

Modern research increasingly relies on quasi-likelihood (QL) models to analyze outcomes ranging from binary events and counts to continuous measurements. Unlike generalized linear models (GLMs), which require full distributional specification within the exponential family, QL methods only posit a mean–variance relationship and a link function, allowing valid inference about the mean model under weaker assumptions [1]. This flexibility makes QL models especially attractive in applied research, where outcomes often deviate from canonical distributions, covariates exhibit complex correlation structures, and overdispersion is common. Yet, the same generality complicates study design: there remains a lack of generalized effect size measures that can accommodate arbitrary numbers of covariates as well as diverse outcome types, leaving power and sample size (PSS) estimation dependent on bespoke solutions for each new problem and setting.

For ease of discussion, we distinguish covariates into two categories: exposures and adjustors. Exposures refer to covariates of primary scientific interest whose associations or effects on the outcome are the main focus of inference, whereas adjustors are additional covariates included to control for confounding, account for nuisance variation, or improve estimation precision.

Over the past 40 years, a number of advances have been made within the framework of GLMs. Some, but not all, of these results might generalize to QL models, even when such extensions are not made explicit by the original authors. Several methods have specifically focused on the Wald test with a single exposure. Hauck and Donner [2] introduced the use of the Wald test in logistic regression for testing hypotheses on the coefficient of a single exposure, deriving the Fisher information and the conditional variance of the estimator. Whittemore [3] developed PSS approximations for logistic regression with rare outcomes, approximating the Fisher information through the moment-generating function of the covariates. Signorini [4] later extended this idea to the Poisson regression model, providing exact, albeit asymptotic, calculations without relying on approximation. Wilson and Gordon [5] proposed a general framework for PSS determination in GLMs that accounts for confounding variables by deriving approximate coefficient variances under both null and alternative hypotheses. Building on this, Shieh [6] refined Wald-based sample size methods by adjusting the variance of the tested coefficient according to the limiting values of nuisance parameters under the null hypothesis, extending earlier work on score and likelihood ratio tests [7, 8].

Shieh [9] and Lyles et al. [10] subsequently expanded Wald-based approaches to multiple exposures, with Lyles et al. [10] placing particular emphasis on nominal, count, and ordinal outcomes. Other contributions have addressed GLM-based PSS [11–16], though most remain limited to logistic or Poisson regression and specific covariate settings. Common software (e.g., SAS PROC POWER, G*Power, PASS) reflects these restrictions, focusing on logistic, Poisson, or analysis of variance (ANOVA)-style designs [17–19]. To address such limitations, Igeta et al. [20] proposed a QL-based framework for PSS calculation that explicitly incorporates possible misspecifications of the variance function in trials with over-dispersed count data. Beyond assumptions about the response distribution, traditional approaches also impose strong and often complex requirements on the joint distribution of exposures and adjustors, as well as on the exact outcome– exposure relationships. These demands limit their practical use, especially with multiple exposures or complex study designs [12, 14], such as when covariates arise as random processes in observational studies. As a result, researchers are frequently forced to adopt unrealistic assumptions or oversimplified models, reducing both the reliability of findings and the efficiency of resource use.

Cochran et al. [21] addressed these limitations by proposing two effect size measures for PSS calculations applicable to any GLM. For ease of reference, we refer to these as 2 Standard deviations in Linear Predictor (2SLiP), which captures the additional variance explained by exposures in the linear predictor scale beyond adjustors, and Pseudo-Partial Inline graphic (P2R2), which generalizes partial Inline graphic to GLMs by quantifying the proportion of outcome variance on a standard deviation scale explained by exposures beyond adjustors. These measures were designed to benefit from the same properties that make the framework described by Gatsonis and Sampson [22] useful for study planning in linear regression, namely, interpretability, support for joint testing of exposures, adjustment for arbitrary covariates, and reliance only on first and second moment information. Because the development of these effects sizes is restricted to GLMs, this restriction implicitly ties the proposed effect size measures to fully specified likelihoods. By exploiting the fact that 2SLiP and P2R2 depend only on first- and second-moment information, we extend the framework to QL models, broadening its applicability while preserving interpretability and accessibility.

This article extends prior methodological work in four ways: First, we launch from a QL framework, a semi-parametric generalization of GLMs that requires only specification of the linear predictor, link, and variance function, without a full probability model [23]. Second, we examine whether the proposed PSS calculations remain useful when applied to score tests, moving beyond the Wald test focus of earlier work. Third, we evaluate the performance of 2SLiP and P2R2 through simulations across diverse QL settings, including overdispersed Poisson, dispersed gamma, and non-canonical links, to assess accuracy and robustness under realistic data structures. Fourth, we present a case study using survey data from Cahill et al. [24] to demonstrate how these measures can be applied in practice, linking effect size estimates to sample size requirements in studies of perceived personal protective equipment (PPE) adequacy and mental health.

The remainder of this article is organized as follows. Methods section reviews the proposed effect size measures, 2SLiP and P2R2, and extends the methodological framework to QL models and score tests. Simulations section reports simulation studies evaluating their performance across settings. Case study section presents a case study illustrating their practical application. Discussion section discusses the results, practical implications, and directions for future research.

Methods

Preliminaries

Consider an outcome Y for a single unit together with its exposures of primary interest Inline graphic and adjustors Inline graphic. The vector of exposures Inline graphic is p -dimensional, while Inline graphic is r -dimensional capturing the adjustment covariates, including an intercept term.

Under QL theory [25], the user specifies the mean and variance of Y conditional on Inline graphic and Inline graphic as

graphic file with name d33e398.gif

where Inline graphic is a dispersion parameter and v(· ) is a known variance function. We refer to Inline graphic simply by μ and Inline graphic by v when unambiguous. The mean μ is related to the exposures and adjustors through a known link function Inline graphic, where η is the linear predictor, and Inline graphic and Inline graphic are the parameter vectors.

Parameters Inline graphic and Inline graphic are estimated by solving the quasi-score equations. These equations are recovered from the quasi-score function, given by

graphic file with name d33e458.gif 1

In practice, parameter estimates are obtained by setting the sample mean of the quasi-score function to zero. In the population, this corresponds to solving Inline graphic with expectation taken over the true joint distribution of Inline graphic. Solutions to this population equation, denoted by Inline graphic, define the population QL parameter values.

Directly solving the population quasi-score equations is generally infeasible due to the nonlinearity of the link function. However, an equivalent characterization is provided by iteratively weighted least squares (IRLS) [23]. Specifically, by taking a first-order Taylor expansion of the outcome Y transformed to the linear predictor scale and expanded about its mean, we obtain a working linearized outcome for each observation: Inline graphic The quasi-score equations can then be replaced by normal equations of a weighted least squares problem, in which Inline graphic is repeatedly regressed onto η with weights for a single observation given by

graphic file with name d33e497.gif 2

This can be equivalently expressed with the first-order conditions for minimizing a weighted mean squared error:

graphic file with name d33e503.gif 3

Measures of effect size

The key observation of the present paper is that the weighted mean squared error in Equation (3) has exactly the same form as in the GLM setting: it depends only on the conditional mean of Y given Inline graphic, as specified by the link function and linear predictor, and on the conditional variance of Y. In GLMs, this variance is determined by the assumed distributional family, whereas under QL it is specified directly as Inline graphic, without otherwise specifying the distribution of Y. Consequently, any construction that depends only on the weighted least squares representation—and not on a fully specified likelihood—generalizes from the GLM to the QL setting.

In particular, the effect size measures introduced for GLMs by Cochran et al. [21] are of this form, depending only on the weighted least squares representation. We therefore adopt the same constructions here, with expectations and weights taken under the QL specification. To formalize these measures in the current setting, we first introduce the reduced model that includes only the adjustors Inline graphic. Let

graphic file with name d33e541.gif 4

where w and Inline graphic are evaluated as in (3) at the true QL parameter values Inline graphic. The reduced-model linear predictor and conditional mean are then given by

graphic file with name d33e560.gif

Using these quantities, we define two effect size measures. The first is a 2 Standard deviation contrast on the Linear Predictor scale (2SLiP),

graphic file with name d33e578.gif 5

where Inline graphic. With Inline graphic representing the difference between the full linear predictor η and the reduced-model linear predictor Inline graphic that includes only Inline graphic, 2SLiP quantifies the variability in the linear predictor attributable to the exposures Inline graphic beyond the adjustors Inline graphic. The second measure is a Pseudo-Partial R-squared (P2R2),

graphic file with name d33e622.gif 6

It measures the proportion of outcome variability on a standard deviation scale explained by the full model mean μ beyond the reduced-model mean Inline graphic that includes only Inline graphic. In the following section, we outline how these effect size measures are employed to obtain approximate power calculations, and we provide theoretical justification for these approximations in Supplementary Section S.2.

Because both effect size measures depend only on the first two conditional moments of Y given Inline graphic, their interpretation can be anchored in the GLM setting and carried over. For example, in Poisson regression with a log link, 2SLiP corresponds to the log rate ratio for Y contrasting two units that differ by two standard deviations in Inline graphic; for a balanced binary exposure Inline graphic with no adjustors, this is simply the contrast between Inline graphic and Inline graphic. In linear regression with unit error variance, 2SLiP reduces to Cohen’s d [26], and P2R2 is exactly the partial Inline graphic. The only distinction in the QL setting is that the conditional variance, and hence the weights, may include a dispersion parameter Inline graphic, which affects the scaling of variability but not the interpretation of the effect size. In an overdispersed Poisson quasi-likelihood model, for instance, 2SLiP retains the interpretation of a log rate ratio over a two–standard deviation contrast in Inline graphic.

Power calculations

The effect size measures introduced are intended to support power and sample size calculations across a broad class of models, including those not fully specified by a parametric family. In GLMs, these measures can be used directly in Wald test power calculations. We ask whether this approach is also appropriate for QL models, considering both Wald and score tests evaluating the null hypothesis that the exposures of interest have no effect, i.e. Inline graphic. We review the relevant tests and describe how the effect sizes are applied.

Wald test.

In QL models with n independent samples, the Wald statistic is constructed from the QL estimators of the model parameters and their estimated covariance, denoted by Inline graphic and Inline graphic, respectively. The matrix Inline graphic is the expected Fisher information matrix in QL theory and can be computed from the quasi-score function Inline graphic evaluated at i.i.d. observations Inline graphic for i=1 to i=n. Compactly, we can write this matrix as

graphic file with name d33e728.gif 7

whose dependence on Inline graphic and Inline graphic enters only through Inline graphic, representing the weight term evaluated at the observation Inline graphic. That is, Inline graphic with Inline graphic and Inline graphic. Taking Inline graphic to be the lower right p × p block of Inline graphic, the Wald test statistic becomes Inline graphic.

Asymptotically, the Wald statistic Inline graphic follows a non-central chi-squared distribution Inline graphic with p degrees of freedom and non-centrality parameter Inline graphic [25]. A formal derivation of the asymptotic distribution of the Wald statistic in the quasi-likelihood setting is provided in Supplementary Section S.1. The effect size measure Inline graphic is defined as

graphic file with name d33e808.gif 8

where

graphic file with name d33e813.gif 9

obtained as the Schur complement of the block Inline graphic in the marginal Fisher information matrix:

graphic file with name d33e822.gif 10

Note Inline graphic corresponds to the lower right p × p block of Inline graphic.

Once you have the effect size Inline graphic, calculating the asymptotic power of the Wald test is straightforward. Since the Wald statistic follows a central chi-squared distribution under the null hypothesis, you would reject at significance level α if Inline graphic exceeds the (1-α )-quantile of Inline graphic. Under the alternative hypothesis, the asymptotic power is then simply the probability that a non-central chi-squared distribution with non-centrality parameter Inline graphic exceeds the same critical value used under the null. Formally, the asymptotic power is given by

graphic file with name d33e867.gif 11

is the cumulative distribution function of the non-central chi-squared distribution. In other words, once you have Inline graphic and the sample size n, you can immediately compute asymptotic power for any chosen significance threshold.

Approximate power.

Because Inline graphic depends on population quantities that are typically unknown, we approximate it using the effect size measures 2SLiP (5) and P2R2 (6), and substitute these approximations into the power expression above. Formal error analyses are available in the GLM setting [21], and because these arguments depend only on first and second moments, they apply equally to the present QL framework. Below, we present the intuition behind why these approximations work in this broader context.

Both measures are grounded in the identity Inline graphic, with theoretical justification provided in Supplementary Section S.2. For 2SLiP, expanding this expectation using basic moment identities yields

graphic file with name d33e905.gif 12

This decomposition clarifies when a simple approximation is reasonable. In settings where the weights exhibit little variation relative to Inline graphic, the mean contribution Inline graphic is small, the covariance term Inline graphic is negligible, and Inline graphic is well approximated by a constant Inline graphic. Under these conditions, the effect size Inline graphic is well approximated by

graphic file with name d33e935.gif

This approximation is exact when weights are constant, as in linear regression. In practice, we set Inline graphic to the weight evaluated at Inline graphic, since the marginal mean can often be specified.

For P2R2, we proceed slightly differently. A first-order Taylor expansion of the conditional mean around Inline graphic yields

graphic file with name d33e955.gif 13

Substituting this approximation into the identity Inline graphic gives

graphic file with name d33e965.gif

This approximation is exact if the link function g(· ) is linear, as with the identity link. For nonlinear mean functions, the approximation is accurate when Inline graphic is close to zero, so that the first-order Taylor expansion about Inline graphic provides a good local approximation.

Score Test.

The preceding develop uses 2SLiP and P2R2 to approximate the non-centrality parameter governing the asymptotic power of the Wald test. While this provides a principled framework, it is ultimately an approximation rooted in large-sample theory, whereas power in practice is determined by finite-sample behavior. This motivates examining whether the same effect-size–based approximation strategy extends is a good heuristic for other testing procedures. To investigate this, we review the score test in the QL setting.

Let Inline graphic denote the function obtained by summing the individual quasi-scores Inline graphic over n i.i.d. observations Inline graphic, and let Inline graphic represents the part of the vector Inline graphic corresponding to Inline graphic. The score test is based on the restricted estimator Inline graphic, defined as the solution to Inline graphic. The resulting score statistic is:

graphic file with name d33e1025.gif 14

Under the null hypothesis Inline graphic, Inline graphic converges in distribution to a central chi-squared distribution with p degrees of freedom. Under the alternative Inline graphic, however, its limiting distribution is no longer chi-squared, which complicates power calculations.

This complication arises because Inline graphic is generally not a consistent estimator of Inline graphic when Inline graphic. Instead, it converges to the solution Inline graphic to the population equation Inline graphic where Inline graphic is the part of the quasi-score Inline graphic corresponding to Inline graphic. As a result, determining the asymptotic behavior of the score statistic under the alternative requires characterizing both Inline graphic and the corresponding mean and covariance of Inline graphic. While these quantities simplify under the null, they do not admit comparably simple expressions under the alternative, making exact power calculations difficult.

Given this difficulty, we adopt a simple heuristic to help benchmark how our power approximations based on 2SLiP and P2R2 perform for score tests in finite samples. Specifically, we define an approximate effect size for the score test by replacing the random components of the score statistic with their population counterparts:

graphic file with name d33e1091.gif 15

Here, Inline graphic represent the marginal Fisher information, obtained by substituting Inline graphic and Inline graphic into (10). As with Inline graphic, Inline graphic, and Inline graphic, we use Inline graphic by substituting Inline graphic for the noncentrality parameter in the corresponding asymptotic power calculation. This approximation is motivated by behavior near the null and is intended solely as a benchmark rather than an exact characterization.

Simulations

The simulation study evaluates the robustness of 2SLiP and P2R2 for Wald and score tests under GLM and QL settings, assessing whether these measures continue to provide stable and interpretable PSS estimates when standard likelihood assumptions are relaxed. A key focus of this study is on cases where the outcome variable is either a count or a positive continuous quantity. For count outcomes, we examine different link functions (log and identity) and variance structures: variance equal to the mean, proportional to the mean, or proportional to the squared mean. For positive continuous outcomes, we evaluate cases where the variance is proportional to either the mean or the squared mean under a log-link function.

We chose these variance structures to cover both canonical GLM settings and common quasi-likelihood departures, thereby evaluating performance across a range of mean–variance relationships and weight functions. For count outcomes, the Poisson variance structure (var = mean) provides a natural baseline, but many real-world count data are overdispersed, with variability exceeding that implied by the Poisson model. Such behavior is common in event counts, healthcare utilization outcomes, and clustered or heterogeneous populations [27–29]. For example, counts of Chronic Obstructive Pulmonary Disease (COPD) exacerbations are often modeled using negative binomial (NB) regression because substantial between-patient heterogeneity induces overdispersion and variance growth beyond the Poisson assumption [30]. For positive continuous outcomes, the variance structure var ∝ meanInline graphic corresponds to the conventional Gamma GLM, in which larger expected responses tend to exhibit proportionally larger variability. In contrast, the variance structure var ∝ mean represents positive continuous outcomes whose absolute variability increases with the mean while relative variability decreases, as may occur in healthcare cost data [31]. One possible explanation is that relative variability decreases among higher-cost patients because patients with substantial healthcare needs tend to consume a more consistent level of services, such as ongoing medication use and routine monitoring.

We also vary the joint specification of exposures and adjustors. Each simulated dataset includes an intercept, a uniformly distributed adjustor Z, and a categorical exposure X. To capture realistic dependence, we use copula-based methods to introduce controlled correlation ρ between X and Z (see Section S.4 in the Supplemental Materials for details). This setup allows us to investigate how different dependence patterns between the exposure and the adjustor affect estimation and inference. Across all cases, we use a consistent simulation framework by specifying target type I error rate α = 0.05 and power q = 0.8. Given α , q and degrees of freedom p, we compute the true non-centrality parameter Δ by solving equation (11). The link function and linear predictor are:

graphic file with name d33e1212.gif 16

where Inline graphic is represented by two dummy variables Inline graphic and Inline graphic. Let Inline graphic and Inline graphic. Consider the null hypothesis Inline graphic. Hence, the degrees of freedom p = 2, and the true non-centrality parameter needed to achieve 80% power is Inline graphic.

Wald test results

Given the joint distribution of Z and Inline graphic and the coefficients in (16), we compute the true asymptotic effect Inline graphic and the approximations Inline graphic and Inline graphic. Since these do not admit closed-form expressions, we approximate them via Monte Carlo, by sampling Z and Inline graphic into a large data set and computing the associated w and Inline graphic. The required sample sizes are then Inline graphic, Inline graphic, and Inline graphic, where Inline graphic denotes the ceiling function. Let Inline graphic be the chosen sample size. For each replicate, we generate an i.i.d. sample Inline graphic, where Inline graphic and Inline graphic follow Section S.4 in the Supplemental Materials, and outcome Inline graphic is then generated based on the specified case. In the following, we set Inline graphic, and Inline graphic for each observation. The Wald statistic Inline graphic is computed, and Inline graphic is rejected if Inline graphic. Repeating this procedure 10,000 times yields the empirical type I error rate under the null or the empirical power under the alternative, calculated as the rejection proportion.

Count outcomes

We investigate three cases of outcome distributions when the outcome is a counted quantity. First, Inline graphic, labeled “var = mean", which corresponds to a correctly specified GLM. The remaining two cases depart from the Poisson mean–variance relationship and are analyzed under a QL framework. Second, Inline graphic, labeled “var ∝ mean", where Inline graphic and Inline graphic are mutually independent for each i. The outcome Inline graphic is generated conditionally on Inline graphic. Third, labeled “var ∝ meanInline graphic", outcomes follow a modified NB distribution, Inline graphic with conditional mean and variance are Inline graphic and Inline graphic. We choose Inline graphic such that Inline graphic, placing this setting within the class of models with a constant coefficient of variation (see Chapter 8 of McCullagh and Nelder [23]), where the variance is proportional to the square of the mean. Throughout the case of count outcomes, we fix Inline graphic. This specification yields a non-standard NB distribution for which the maximum likelihood estimator (MLE) is difficult to obtain in closed form. Instead, the estimation of Inline graphic and the dispersion parameter Inline graphic follows the procedure in Section S.6 in the Supplemental Materials.

Log Link

With targeted type I error rate α = 0.05 and power q = 0.8, we set the coefficients Inline graphic, and Inline graphic in this simulation study. We use the log link function, so that Inline graphic. The coefficients are chosen to achieve a target sample size of n = 400 approximately under ρ = 0 (see Section S.5 in the Supplemental Materials for details). Figure 1 presents the sample sizes n, Inline graphic, and Inline graphic for three cases of outcome variable under this specification across varying values of the correlation parameter ρ , along with the corresponding empirical type I error rates and power, obtained from simulations. As ρ increases, both Inline graphic and the pseudo-partial R-squared Inline graphic decline, because the unique contribution of Inline graphic to the outcome Y , beyond that of Inline graphic, diminishes as the dependence between the exposure Inline graphic and the adjustor Inline graphic strengthens. Consequently, larger sample sizes are needed to maintain nominal power, a pattern consistent across all variance structures. Nevertheless, the impact of ρ on the ratios Inline graphic and Inline graphic is relatively minor, indicating that both 2SLiP and P2R2 remain robust for relative sample size estimation under varying dependence between exposures (Inline graphic) and adjustors (Inline graphic).

Fig. 1.

Fig. 1

Empirical type I error rates and power of the Wald test based on simulated count data for three cases of outcome variables: a var = mean, b var ∝ mean, c var ∝ mean2. Results are shown for sample sizes n, Inline graphic, and Inline graphic, using a log link

 

Across all three cases, the 2SLiP-based sample size Inline graphic closely matches the true n . Notably, in the third case, where Inline graphic, the resulting weight w in (2) is constant, yielding Inline graphic. This underscores the theoretical validity of 2SLiP in settings where the weight is constant. In contrast, the P2R2 approximation Inline graphic tends to overestimate the effect size Inline graphic, and hence to underestimate the required sample size in the first two cases—“var = mean” and “var ∝ mean”—resulting in smaller values of Inline graphic. Consequently, the achieved empirical power is lower than the nominal target, highlighting a potential limitation of P2R2 in such settings where the link function is far from linear or the variance structure is not conducive to the P2R2 approximation.

Identity Link

For the identity link, we set the coefficients Inline graphic, and Inline graphic, giving Inline graphic. Figure 2 presents the sample sizes n, Inline graphic, and Inline graphic for three cases of outcome variables across values of ρ , along with the empirical type I error rates and power.

Fig. 2.

Fig. 2

Empirical type I error rates and power of the Wald test based on simulated count data for three cases of outcome variables: a var = mean, b var ∝ mean, c var ∝ mean2. Results are shown for sample sizes n, Inline graphic, and Inline graphic, using a log link

 

Across all three cases and values of ρ , the 2SLiP-based sample size Inline graphic remains close to the true n , demonstrating robustness. Moreover, the P2R2-based sample size Inline graphic equals to n exactly, consistent with the definition of Inline graphic and its approximation condition in (13), which requires the link function g(· ) to be approximately linear. Under the identity link, Inline graphic and Inline graphic, so w = 1/v, leading to Inline graphic.

Positive continuous outcomes

We investigate two cases of outcome distributions when the outcome is a positive continuous quantity. First, labeled “var ∝ mean", Inline graphic, where the second parameter Inline graphic is the scale. This specification yields mean Inline graphic and variance Inline graphic. Estimation of Inline graphic and Inline graphic follows Section S.6 in the Supplemental Materials. Second, labeled “var ∝ meanInline graphic", assumes Inline graphic, where the second parameter Inline graphic is the scale. This specification yields mean Inline graphic and variance Inline graphic, which is a standard GLM.

With targeted type I error rate α = 0.05 and power q = 0.8, we set the coefficients Inline graphic, and Inline graphic in this simulation study. The dispersion parameter is set to Inline graphic for the first case and Inline graphic for the second, both under a log link. Figure 3 presents the sample sizes n, Inline graphic, and Inline graphic across values of ρ , together with the corresponding empirical type I error rates and power.

Fig. 3.

Fig. 3

Empirical type I error rates and power of the Wald test based on simulated positive continuous data for two cases of outcome variables: a var ∝ mean, b var ∝ mean2. Results are shown for sample sizes n, Inline graphic, and Inline graphic, using a log link

As seen in the foregoing study, increasing ρ reduces the unique contribution of Inline graphic beyond Inline graphic, thereby increasing the required sample size. In the “var ∝ mean” case (Fig. 3a), both Inline graphic and Inline graphic slightly underestimate n, resulting in modest under-powering. By contrast, in the “var ∝ meanInline graphic" case (Fig. 3b), only Inline graphic slightly underestimates n, while Inline graphic matches n exactly. This exact equality arises for the same reason as in the third case of the log-link count outcome: when Inline graphic, the resulting weight w is constant.

Across all link–variance combinations, the ratio of approximate to the true sample size deviated from unity by no more than 3%, with the largest under-estimation Inline graphic occurring for P2R2 in the “var ∝ mean, log-link” positive continuous case. Overall, these results collectively support the conclusion that 2SLiP and P2R2 offer consistently reliable performance for positive continuous outcomes. Regardless of the underlying variance structure, both measures provide valuable tools for PSS in GLMs and QL models.

We also conduct a parallel set of simulations in which Inline graphic is varied while the exposure–adjustor correlation is fixed at a moderate level. These simulations provide a direct sensitivity check of how changes in effect magnitude translate into effect size and required sample size. The outcome distributions, data-generating mechanisms, estimation procedures, and Wald-test implementation are identical to those described above, and the results reinforce the robustness patterns observed in the main simulation grid (see Supplementary Section S.7).

Score test results

Following the setting of the simulation and in Wald test results section, we target target type I error rate α = 0.05 and power q = 0.8. Given α , q, and degrees of freedom p, the true non-centrality parameter Δ is obtained by solving equation (11). We then link Δ to the approximate score-test effect Inline graphic to compute the required sample size. For a given data-generating mechanism (for example, as described at the beginning of Simulations section), Inline graphic is evaluated by Monte Carlo: draw a large i.i.d. sample of Inline graphic under known Inline graphic, obtain Inline graphic and Inline graphic, and compute the sample analogue of Inline graphic from (15). The required sample size is then Inline graphic, where Inline graphic denotes the ceiling function. For comparison, we also report Inline graphic and Inline graphic. Throughout this section we use Inline graphic, and Inline graphic and the log link.

Having set up and computed the required values for each case, let Inline graphic be the chosen sample size. For each replicate, we generate an i.i.d. sample Inline graphic where Inline graphic and Inline graphic follow Section S.4 in the Supplemental Materials, and the count outcome Inline graphic is drawn from the distributions in Count outcomes section, labled “var = mean", “var ∝ mean", and “var ∝ meanInline graphic". For each replicate and sample size, we compute the score statistic Inline graphic If Inline graphic, we reject Inline graphic; otherwise, we do not. Repeating this procedure 10,000 times yields the empirical type I error rate under the null or the empirical power under the alternative, calculated as the proportion of simulations rejecting Inline graphic.

Figure 4 presents the sample sizes Inline graphic, Inline graphic, and Inline graphic for three outcome cases across values of the correlation parameter ρ , along with the empirical type I error rates and power. Across all cases, the realized type I error remained within the target 0.05±0.004 envelope, confirming that the score statistic is well calibrated. The sample size Inline graphic (from the approximated score-test effect Inline graphic) served as the benchmark. Both Inline graphic and Inline graphic matched Inline graphic closely for “var = mean” and “var ∝ meanInline graphic”, with at most 1% deviation. For “var ∝ mean”, the largest underestimation was 3% (Inline graphic, Inline graphic). Increasing ρ (stronger exposure–adjustor association) inflated all three required sample sizes, but did not magnify the approximation error: the ratios Inline graphic and Inline graphic remained flat across the correlation grid. These findings mirror those obtained for the Wald test in Wald test results section, underscoring that 2SLiP and P2R2 transfer seamlessly from Wald to score tests.

Fig. 4.

Fig. 4

Empirical type I error rates and power of the score test based on simulated count data for three cases of outcome variables: a var = mean, b var ∝ mean, c var ∝ mean2. Results are shown for sample sizes n, Inline graphic, and Inline graphic, using a log link

Case study

We illustrate the two approximated effect size measures, and accompanying PSS calculations, using survey data collected by Cahill et al. [24] from frontline health care workers during the COVID-19 pandemic. We first analyze the data and then consider a case where these data are viewed as arising from a pilot study and show how they can be used for PSS for a future study. The dataset includes responses from participants across two health systems in central Texas and features the 23-item Burnout Assessment Tool (BAT-23) as a measure of burnout risk. Along with burnout outcomes, participants reported their perceptions of personal protective equipment (PPE) adequacy and provided demographic and occupational information, offering a comprehensive basis for evaluating workplace factors and mental health. In this section, we first estimated the regression coefficients, then computed the two approximated effect size measures (2SLiP and P2R2), and finally examined how variation in the hypothetical regression coefficients for the exposure influences both the effect size and the sample size requirements for future studies planned for similar designs and instruments, to be analyzed within the QL framework.

Within this case study, we applied the QL framework to model the association between perceived PPE adequacy and burnout scores. The QL approach requires only the specification of the linear predictor, link function, and variance function, making it particularly appropriate for survey-based mental health data where distributional assumptions are uncertain. In our analysis, BAT-23 scores were treated as a positive continuous outcome Y and modeled with a log link Inline graphic under a variance structure proportional to the mean. As model comparison is beyond the scope of this manuscript, we adopted this model framework (log link and “var ∝ mean") only because it does not guarantee exact effect size computation under either 2SLiP or P2R2, thereby allowing us to simultaneously illustrate their robustness. Perceived PPE adequacy was entered as the primary exposure Inline graphic, with demographic and occupational covariates (age, gender, education, and role) included as adjustors Inline graphic in the model. The exposure and adjustors were all categorical variables and were therefore represented using dummy variables in the regression. Specifically, perceived PPE adequacy was categorized as Very Confident, Somewhat Confident, Uncertain, Somewhat Doubtful, and Very Doubtful. Very Confident was treated as the reference category, and four dummy variables were created accordingly, resulting in four degrees of freedom for this exposure.

In this model specification, the log of the conditional mean of the outcome is given by Inline graphic, with variance specified as Inline graphic. Using the estimation procedure described in Section S.6 in the Supplemental Materials, we obtained the estimated regression coefficients for the exposure

graphic file with name d33e2337.gif

along with estimates for the adjustors, Inline graphic, and the dispersion parameter, Inline graphic. The elements of Inline graphic represent the log-mean differences in burnout scores relative to the Very Confident group. Overall, the estimated coefficients Inline graphic indicate that lower perceived PPE adequacy is associated with higher expected burnout scores, even after adjusting for demographic and occupational covariates.

Taking Inline graphic and Inline graphic as the true values of Inline graphic and Inline graphic, and the empirical distribution from the data as the true distribution, we could compute Inline graphic, Inline graphic, the true effect size Inline graphic from (8). On the original burnout scale, Inline graphic represents the expected relative change of the burnout score when perceived PPE adequacy shifts from relatively “high” confidence (e.g., Very Confident) to relatively “low” confidence (e.g., Very Doubtful), averaged over how workers are actually distributed across the adequacy categories and adjusting for other covariates. Inline graphic quantifies how much better the model predicts burnout when perceived PPE adequacy is included, beyond what’s already explained by demographic and occupational covariates. Here, Inline graphic implies that perceived PPE adequacy explains 2.0% of the variation in burnout scores that is not already accounted for by demographics and occupational role. Finally, Inline graphic and Inline graphic correspond to two approximated effect sizes Inline graphic and Inline graphic, both of which slightly underestimate the true effect size Inline graphic.

Building on this, and to show how these base values might be used as reference pilot values in study planning, we fixed Inline graphic as the true value of Inline graphic and set Inline graphic as the true value of Inline graphic, varying δ from 0.5 to 1.5 to evaluate the performance of Inline graphic and Inline graphic. With type I error rate α = 0.05 and degrees of freedom p = 4, the true non-centrality parameter required to achieve 80% power is Inline graphic. For each value of δ , we computed the true effect size Inline graphic, the approximations Inline graphic and Inline graphic (with corresponding Inline graphic and Inline graphic), and the approximate sample sizes required to achieve 80% power. These sample sizes were calculated as Inline graphic, Inline graphic, and Inline graphic. The results are presented in Fig. 5. The top panel of Fig. 5 shows the ratios Inline graphic and Inline graphic, comparing sample sizes based on the approximations to those from the true effect size. Both ratios remain close to one, with deviations typically within 2–10% and rarely exceeding 10%. For example, when δ = 1, the required sample sizes are on the order of 500–600, with Inline graphic and Inline graphic, showing that both approximations remain very close to the true requirement; in this case, the approximations slightly over-estimate the needed sample size, yielding conservative study designs. Importantly, the largest deviations occur when the true required sample size is relatively small (around 200), where even moderate differences in absolute numbers translate into larger percentage discrepancies.

Fig. 5.

Fig. 5

Performance of effect size measures and corresponding sample sizes across scaled exposure effects

Overall, the case study demonstrates that both Inline graphic and Inline graphic yield effect size approximations that closely track the true Inline graphic, providing robust and practically reliable guidance for sample size determination under the quasi-likelihood framework.

Discussion

Using extensive simulations that span canonical and non–canonical GLMs and QL models, we found that the two effect–size measures, 2SLiP and P2R2, retain their accuracy for the Wald test, and, under more limited conditions, for the score test as well. The 2SLiP approximation is essentially exact whenever the weight is constant (e.g.,“var ∝ meanInline graphic"), while P2R2 becomes exact when the link function is linear (e.g., identity link). Even in deliberately unfavourable configurations, in our simulation investigations, both measures missed the target sample size by no more than 3%, and the empirical power achieved by both measures deviated from the target power by no more than 2%.

Traditional power procedures for GLMs either require full specification of the joint Inline graphic distribution [7, 9, 12] or rely on design-matrix enumerations that become unwieldy with many exposures [10]. By contrast, 2SLiP and P2R2 need only first- and second-moment information, inherit the intuitive interpretation of effect in the linear predictor and variance explained from classical regression, and apply unchanged to quasi-likelihood models with dispersion. These advantages make the new measures that we propose especially attractive when the data-generating mechanism is incompletely specified or the design involves many exposures.

We note that soliciting 2SLiP and P2R2 inputs from investigators can still pose a challenge. Investigators must form expectations about the partial contribution of the exposure Inline graphic to the outcome, conditional on Inline graphic. Additionally, both 2SLiP and P2R2 are influenced by the correlation between Inline graphic and Inline graphic and by the variance structure of Y, further complicating direct elicitation. However, this difficulty is no greater than that of eliciting Inline graphic or Cohen’s d in linear regression settings, which similarly require investigators to anticipate variance explained by exposures that may not yet be fully characterized. To facilitate adoption, we are developing a user-friendly implementation of these methods as a web-based R Shiny application (https://glmpower.shinyapps.io/shinyapp/). A follow-up manuscript describing the software resource will also include discussions and examples related to the solicitation of 2SLiP and P2R2.

Our investigation is limited to balanced designs with categorical exposures of up to three levels. Extending the framework to highly unbalanced cells, continuous-by-continuous interactions, and mixed-effects GLMs—where random effects introduce additional variance components—remains an important direction for future work. Addressing these settings will further broaden the practical scope of 2SLiP and P2R2 in planning modern, complex studies.

Supplementary Information

Acknowledgements

We used AI-based tools to assist with language polishing and editorial refinement of the manuscript.

Authors’ contributions

S.Y. wrote the main manuscript text and conducted the simulations. A.C. reviewed and edited the manuscript. P.R. conceived the main idea. All authors reviewed the manuscript. We note with sadness that P.R. passed away during the final stages of this work.

Funding

The work was supported by a National Institute of Mental Health (NIMH) grant (R21MH133371).

Data availability

This manuscript primarily relies on simulated data to illustrate and evaluate the proposed methods. The simulated datasets and the simulation algorithms will be made publicly available upon acceptance of the manuscript. The real-world case study data are not publicly available due to confidentiality and data-use restrictions; however, the case study is included for illustrative purposes only and does not affect the main methodological conclusions of the manuscript.

Declarations

Ethics approval and consent to participate

Not applicable.

Consent for publication

Not applicable.

Competing interests

The authors declare no competing interests.

Footnotes

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

References

  • 1.Wedderburn RW. Quasi-likelihood functions, generalized linear models, and the Gauss-Newton method. Biometrika. 1974;61(3):439–47. [Google Scholar]
  • 2.Hauck WW Jr, Donner A. Wald’s test as applied to hypotheses in logit analysis. J Am Stat Assoc. 1977;72(360a):851–3. [Google Scholar]
  • 3.Whittemore AS. Sample size for logistic regression with small response probability. J Am Stat Assoc. 1981;76(373):27–32. [Google Scholar]
  • 4.Signorini DF. Sample size for Poisson regression. Biometrika. 1991;78(2):446–50. [Google Scholar]
  • 5.Wilson S, Gordon I. Calculating sample sizes in the presence of confounding variables. J Roy Stat Soc: Ser C (Appl Stat). 1986;35(2):207–13. [Google Scholar]
  • 6.Shieh G. Sample size calculations for logistic and Poisson regression models. Biometrika. 2001;88(4):1193–9. [Google Scholar]
  • 7.Self SG, Mauritsen RH. Power/sample size calculations for generalized linear models. Biometrics. 1988;79–86.
  • 8.Self SG, Mauritsen RH, Ohara J. Power calculations for likelihood ratio tests in generalized linear models. Biometrics. 1992;31–9. [DOI] [PubMed]
  • 9.Shieh G. On power and sample size calculations for Wald tests in generalized linear models. J Stat Plan Infer. 2005;128(1):43–59. [Google Scholar]
  • 10.Lyles RH, Lin HM, Williamson JM. A practical approach to computing power for generalized linear models with nominal, count, or ordinal responses. Stat Med. 2007;26(7):1632–48. [DOI] [PubMed] [Google Scholar]
  • 11.Hsieh FY, Bloch DA, Larsen MD. A simple method of sample size calculation for linear and logistic regression. Stat Med. 1998;17(14):1623–34. [DOI] [PubMed] [Google Scholar]
  • 12.Demidenko E. Sample size determination for logistic regression revisited. Stat Med. 2007;26(18):3385–97. [DOI] [PubMed] [Google Scholar]
  • 13.Demidenko E. Sample size and optimal design for logistic regression with binary interaction. Stat Med. 2008;27(1):36–46. [DOI] [PubMed] [Google Scholar]
  • 14.Novikov I, Fund N, Freedman L. A modified approach to estimating sample size for simple logistic regression with one continuous covariate. Stat Med. 2010;29(1):97–107. [DOI] [PubMed] [Google Scholar]
  • 15.Channouf N, Fredette M, MacGibbon B. Power and sample size calculations for Poisson and zero-inflated Poisson regression models. Comput Stat Data Anal. 2014;72:241–51. [Google Scholar]
  • 16.Bush S. Sample size determination for logistic regression: A simulation study. Commun Stat-Simul Comput. 2015;44(2):360–73. [Google Scholar]
  • 17.SAS Institute Inc. SAS/STAT 14.2 User’s Guide. Cary: SAS Institute Inc; 2016.
  • 18.Faul F, Erdfelder E, Lang AG, Buchner A. G* Power 3: A flexible statistical power analysis program for the social, behavioral, and biomedical sciences. Behav Res Methods. 2007;39(2):175–91. [DOI] [PubMed] [Google Scholar]
  • 19.NCSS. PASS 2022 Power Analysis and Sample Size Software. Kaysville: NCSS, LLC; 2022.
  • 20.Igeta M, Takahashi K, Matsui S. Power and sample size calculation incorporating misspecifications of the variance function in comparative clinical trials with over-dispersed count data. Biometrics. 2018;74(4):1459–67. [DOI] [PubMed] [Google Scholar]
  • 21.Cochran AL, Yuan S, Rathouz PJ. General measures of effect size to calculate power and sample size for Wald tests with generalized linear models. arXiv preprint. 2025. https://arxiv.org/abs/2504.22324. Accessed 11 July 2026.
  • 22.Gatsonis C, Sampson AR. Multiple correlation: exact power and sample size calculations. Psychol Bull. 1989;106(3):516. [DOI] [PubMed] [Google Scholar]
  • 23.Mccullagh P, Nelder J. Generalized linear models. CRC Press; 1989.
  • 24.Cahill AG, Olshavsky ME, Newport DJ, Benzer J, Chambers KM, Custer J, et al. Occupational risk factors and mental health among frontline health care workers in a large US metropolitan area during the COVID-19 pandemic. Prim Care Companion CNS Disord. 2022;24(2):40038. [DOI] [PubMed] [Google Scholar]
  • 25.McCullagh P. Quasi-likelihood functions. Ann Stat. 1983;59–67.
  • 26.Cohen J. A power primer. Psychol Bull. 1992;112(1):155–9. [DOI] [PubMed] [Google Scholar]
  • 27.Robertson MC, Campbell AJ, Herbison P. Statistical analysis of efficacy in falls prevention trials. J Gerontol A Biol Sci Med Sci. 2005;60(4):530–4. [DOI] [PubMed] [Google Scholar]
  • 28.Friede T, Häring DA, Schmidli H. Blinded continuous monitoring in clinical trials with recurrent event endpoints. Pharm Stat. 2019;18(1):54–64. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Fernandez GA, Vatcheva KP. A comparison of statistical methods for modeling count data with an application to hospital length of stay. BMC Med Res Methodol. 2022;22(1):211. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.Galiatsatos P, Woo H, Paulin LM, Kind A, Putcha N, Gassett AJ. The association between neighborhood socioeconomic disadvantage and chronic obstructive pulmonary disease. Int J Chronic Obstructive Pulm Dis. 2020;981–93. [DOI] [PMC free article] [PubMed]
  • 31.Veazie P, Intrator O, Kinosian B, Phibbs CS. Better performance for right-skewed data using an alternative gamma model. BMC Med Res Methodol. 2023;23(1):298. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Data Availability Statement

This manuscript primarily relies on simulated data to illustrate and evaluate the proposed methods. The simulated datasets and the simulation algorithms will be made publicly available upon acceptance of the manuscript. The real-world case study data are not publicly available due to confidentiality and data-use restrictions; however, the case study is included for illustrative purposes only and does not affect the main methodological conclusions of the manuscript.


Articles from BMC Medical Research Methodology are provided here courtesy of BMC

RESOURCES