The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.
ai-skills vignette demonstrating how the agent
skills under .agents/skills/ can guide package-native
score-test and simulation workflows without replacing statistical
review.sample_size_nbinom() calls,
including dropout, event-gap, non-inferiority, and group sequential
parameterization checks.variance_null field from
sample_size_nbinom() so it is on the same final-analysis
scale as variance; the score sample-size calculation itself
was already using the null variance factor correctly.toInteger.gsNB() now preserves calendar-time enrollment
quantities at interim analyses and recomputes expected events,
exposures, and information after rounding the final sample size.toInteger.gsNB() now preserves the shape of piecewise
accrual schedules when rescaling calendar-time designs after final
sample-size rounding.gsNBCalendar(), update_gsNB(), and
simulation boundary checks now support harm-bound group sequential
designs available in gsDesign 3.10.0
(test.type = 7 or 8, sfharm,
sfharmparam, and testHarm).summarize_gs_sim() now reports optional sample-size and
exposure summaries when available and uses finite trimmed means for
information estimates.mutze_test(), calculate_blinded_info(),
and unblinded_ssr() now fall back to method-of-moments
(MoM) estimation via estimate_nb_mom() when the maximum
likelihood negative binomial fit does not converge or returns an
extreme-overdispersion shape estimate. Previously, the Poisson fallback
was used in both “near-Poisson” and “extreme-overdispersion” regimes;
the latter is anti-conservative because the Poisson variance
underestimates the true NB variance under genuine overdispersion. The
MoM fallback computes the Wald standard error from the observed Fisher
information formula \(\mathcal{I} = 1/(1/W_1 +
1/W_2)\) with \(W_g = \sum_i
\mu_{g,i}/(1 + \hat{k}\mu_{g,i})\), preserving the NB variance
structure without requiring ML convergence.mutze_test() gains a mom_threshold
argument (default 20, corresponding to \(\hat{k} > 20\)) that controls when the
MoM branch is triggered. The existing poisson_threshold
default is reduced from 1000 to 50 (\(\hat{k} < 0.02\)) since NB and Poisson
Wald standard errors are numerically indistinguishable at that
point.fallback
element in their output ("ml", "mom", or
"poisson") so that downstream simulation engines can record
which estimator was used at each interim.sample_size_nbinom() and
compute_info_at_time().sample-size-nbinom vignette with a
consistent notation table and comparison of Zhu-Lakkis, Friede-Schmidli,
and Mutze et al. methods.sample_size_nbinom(),
calculate_blinded_info(), and
compute_info_at_time() with @details sections,
consistent notation, and cross-references.verification-simulation vignette with a
scenario sweep table and a discussion of why the correction is preferred
despite partial cancellation with model-based SE bias.rr0 parameter to
sample_size_nbinom() and blinded_ssr() to
support non-inferiority and super-superiority testing.event_gap to 0 in
nb_sim().cut_date_for_completers() to support
nb_sim_seasonal() output (no tte column).calculate_blinded_info() blinded information
calculation to use subject-level exposure.toInteger.gsNB() to avoid unintended power changes
by correctly recomputing information with max_followup,
preserving delta1, and improving ratio-aware integer
rounding.sample_size_nbinom() computes sample size or power for
fixed designs with two treatment groups. Supports piecewise accrual,
exponential dropout, maximum follow-up, and event gaps. Implements the
Zhu and Lakkis (2014) and Friede and Schmidli (2010) methods.gsNBCalendar() creates group sequential designs for
negative binomial outcomes, optionally attaching calendar-time analysis
schedules (via analysis_times) compatible with gsDesign.
Inherits from both gsDesign and
sample_size_nbinom_result classes.compute_info_at_time() computes statistical information
for the log rate ratio at a given analysis time, accounting for
staggered enrollment.toInteger() rounds sample sizes in a group sequential
design to integers while respecting the randomization ratio.nb_sim() simulates recurrent events for trials with
piecewise constant enrollment, exponential failure rates, and piecewise
exponential dropout. Supports negative binomial overdispersion via gamma
frailty and event gaps.nb_sim_seasonal() simulates recurrent events where
event rates vary by season (Spring, Summer, Fall, Winter).sim_gs_nbinom()
runs repeated simulations with flexible cut rules via
get_cut_date(), check_gs_bound() updates
spending bounds based on observed information, and
summarize_gs_sim() summarizes operating characteristics
across analyses.cut_data_by_date() censors follow-up at a specified
calendar time and aggregates events per subject, adjusting for event
gaps.get_analysis_date() finds the calendar time at which a
target event count is reached.cut_completers() subsets data to subjects randomized by
a specified date.cut_date_for_completers() finds the calendar time at
which a target number of subjects have completed their follow-up.mutze_test() fits a negative binomial (or Poisson)
log-rate model and performs a Wald test for the treatment effect,
following Mütze et al. (2019).blinded_ssr() estimates blinded dispersion and event
rate from interim data and re-calculates sample size to maintain power,
following Friede and Schmidli (2010).calculate_blinded_info() estimates blinded statistical
information for the log rate ratio from aggregated interim data.gsDesign(), gsBoundSummary(),
and common spending functions (sfHSD(),
sfLDOF(), sfLDPocock(), and more) for
convenience.These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.